Python Forum

Full Version: Pandas
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)
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.