Dec-19-2019, 03:01 AM
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)
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)