1

When I try to click on data frames in the Variable Explorer in Spyder, I get the following error:Spyder Error

This happens with all data frames (I tried making my own).

As a side note, functions like numpy.sum and .describe() don't output anything, but I'm unsure if this is related to the KeyError.

Thank you!

bejewelled
  • 195
  • 13
  • Besides the dialog in the screenshot, you get any error stack trace somewhere? What output do you get in Spyder when you enter `import pandas; print(pandas.__file__)` and `import pandas._libs.interval; print(pandas._libs.interval.__file__)` in the interactive console? – hoefling Feb 04 '21 at 08:40

1 Answers1

0

Add pandas to the packages option in setup.py module.

Here is the code snippet for setup.py

from setuptools import setup

APP = ['automating_finances0.py']
DATA_FILES = []
OPTIONS = {'packages': ['pandas']} 

setup(
  app=APP,
  data_files=DATA_FILES,
  options={'py2app': OPTIONS},
  setup_requires=['py2app'],
)

If this not works please try reinstalling pandas from pip as

pip uninstall pandas

pip install pandas

Rushikesh Sabde
  • 1,376
  • 1
  • 8
  • 24