Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas
#1
Hi, I am struggling to run code because I cannot seem to get dataframe or panelgroupby. Ive tried different versions of Pandas and nothign seems to work.

Traceback (most recent call last):
File "code/analysis/get_ma.py", line 19, in <module>
tqdm.pandas() # Gives us nice progress bars
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tqdm/_tqdm.py", line 616, in pandas
from pandas.core.groupby import DataFrameGroupBy, \
ImportError: cannot import name 'PanelGroupBy' from 'pandas.core.groupby' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/groupby/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "code/analysis/get_ma.py", line 19, in <module>
tqdm.pandas() # Gives us nice progress bars
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tqdm/_tqdm.py", line 616, in pandas
from pandas.core.groupby import DataFrameGroupBy, \
ImportError: cannot import name 'PanelGroupBy' from 'pandas.core.groupby' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/groupby/__init__.py)
Reply
#2
nice to have errors,
better to have complete unaltered errors and of course the source code to go with.
And all presented in code tags.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020