question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder can't open dataframes with Pandas 1.3.0

See original GitHub issue

Issue 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 (or pip, 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:closed
  • Created 2 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Jul 26, 2021

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.

0reactions
ccordoba12commented, Jun 14, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found