Spyder can't open dataframes with Pandas 1.3.0
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
When I open a dataframe in the variables explorer, I get the following error:
Spyder was unable to retrieve the value of this variable from the console.
The error message was: An error occured, see the console…
I think this happened after updating my pandas to 1.3.0
What steps reproduce the problem?
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
PASTE TRACEBACK HERE
Versions
- Spyder version: 5.0.5
- Python version: 3.9.5
- Qt version:
- PyQt version:
- Operating System name/version: macOS 11.4
Dependencies
PASTE DEPENDENCIES HERE
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
can't open dataframe in variable explorer in Spyder IDE
Once I restarted Spyder, as long as I don't create a GeoDataFrame, it opens all other DataFrames (from Pandas) just fine.
Read more >pandas.read_table — pandas 1.5.2 documentation
Column(s) to use as the row labels of the DataFrame , either given as string name or column index. If a sequence of...
Read more >How to Install pandas on Ubuntu 20.04 - VarHowto
Pandas is a fast, efficient, modular and easy-to-use open source framework ... all 1.3.0-3 [83.7 kB] Get:29 http://archive.ubuntu.com/ubuntu ...
Read more >pandas-profiling - PyPI
Generate profile report for pandas DataFrame. ... Start by loading your pandas DataFrame as you normally would, e.g. by using:
Read more >How To Install Pandas In Python? An Easy Step By Step ...
It is among the fastest and most easy-to-use libraries for data analysis and manipulation. Pandas dataframes are some of the most useful data ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @jondo, thanks a lot for tracking this problem. That’s really the solution!
In other words, for people having this bug, please update to Pandas 1.3.1 in your environments to get the fix and keep viewing dataframes in our Variable Explorer.
@stumpyd123, you need to be sure that you Pandas 1.4 both in the environment Spyder is installed and any external environment you’re using. Also, you need to note that Pandas 1.4 is not compatible with Python 3.7.