问题
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