Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing dataframes in Spyder using a command in its console

I have been using R Studio for quite some time, and I find View() function very helpful for viewing my datasets.

Is there a similar View() counterpart in Spyder?

like image 569
Kenneth Singh Avatar asked Nov 16 '17 07:11

Kenneth Singh


People also ask

How do you display Dataframe in Spyder?

To view the contents of a Dataframe, you need to double-click on it in the Variable Explorer. hope you can wrap it into a function,it's very useful when the variable explorer has too many variables.

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 get the console output in Spyder?

First, use print(x), or plt. show() if using matplotlib. pyplot. Then, if you find that spyder python does not give any output at (F5), change Preferences (spanner icon), select menu 'Run' and change to a different Console option, e.g. 'Execute in a dedicated console', then Run (F5).

How do I view a Dataframe in Python?

Example 1 : One way to display a dataframe in the form of a table is by using the display() function of IPython. display .


1 Answers

(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.

like image 181
Carlos Cordoba Avatar answered Oct 22 '22 03:10

Carlos Cordoba