Pandas DataFrames are displaying with new Object Explorer in Spyder 4

落花浮王杯 提交于 2020-04-07 06:46:04

问题


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

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?


回答1:


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




回答2:


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.

Edit: I don't have Spyder 4.0 installed, you can check if this works for you.



来源:https://stackoverflow.com/questions/60206250/pandas-dataframes-are-displaying-with-new-object-explorer-in-spyder-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!