Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pandas DataFrames are displaying with new Object Explorer in Spyder 4

I updated Spyder to 4.0.1 which has a new object explorer, allowing to display arbitrary objects in a tree-like view as well as displaying metadata New Variable Explorer

Previous versions of Spyder enabled to view Pandas Dataframes in a simple table view when double clicking on the variable in the explorer.

Is there a simple way of accessing this nice old view in Spyder 4.0.1?

like image 723
thylakoid12 Avatar asked Feb 13 '20 11:02

thylakoid12


People also ask

How do I view Dataframe in Spyder 4?

As per documentation https://www.spyder-ide.org/blog/spyder-variable-explorer/ you can view the dataframe by right clicking on it and selecting the "View with the Object Explorer" option.

How do you display Dataframe in Spyder?

(Spyder maintainer here) There's no function similar to view() in Spyder. To view the contents of a Dataframe, you need to double-click on it in the Variable Explorer.

How do you change variable Explorer in Spyder?

Go to View/Panes and select Variable Explorer. Show activity on this post. Show activity on this post. You can go to view then in view click on window layout then in that click on reset to spyder default which will give you the default layout of spyder.

How do I use the Spyder variable Explorer?

The Variable Explorer gives you information on the name, size, type and value of each object. To modify a scalar variable, like an number, string or boolean, simply double click it in the pane and type its new value.


1 Answers

(Spyder maintainer here) You need to have Pandas installed in the same Python installation or environment where Spyder is installed. Else Spyder will use the Object explorer to open Dataframes, just as it does with any other kind of Python object.

like image 170
Carlos Cordoba Avatar answered Oct 27 '22 05:10

Carlos Cordoba