Pandas DataFrames are displaying with new Object Explorer in Spyder 4

后端 未结 3 1307
无人共我
无人共我 2021-01-13 06:17

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

Previous version

相关标签:
3条回答
  • 2021-01-13 06:18

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

    0 讨论(0)
  • 2021-01-13 06:30

    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.

    0 讨论(0)
  • 2021-01-13 06:40

    Just open up the terminal >> activate the environment that you're working in >> install pandas again. (If you're using conda, install it using conda)

    0 讨论(0)
提交回复
热议问题