New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tqdm.pandas() ImportError: cannot import 'PanelGroupBy' #555
Comments
What is the status on this fix? |
should be fixed in |
I am getting this issue in |
yes, as per #780 this is now due to |
I saw that after posting; thanks for following up, @casperdcl. |
just in case someone else winds up here to follow the trail :) |
Got the same error with |
At the time of writing this comment, one does not need to downgrade pandas from |
yes as per #780 (comment) fixed in |
likely to break again at some time in future since
|
To avoid versions conflicts tqdm/tqdm#555
To avoid versions conflicts tqdm/tqdm#555
I think this broke again with pandas 1.0.0 |
v1.0.0? Awesome! Major version 1 means it's unlikely to break again once it's re-fixed. |
Hey |
I have I am trying to run :
|
Nevermind, I just needed to upgrade to |
I think this problem still exist with following: Pandas vesion: 1.1.5 ImportError: cannot import name 'PanelGroupBy'
If the module is lightweight, try adhoc_import - http://go/adhoc-import
If you're already using adhoc_import and are having trouble, see http://go/adhoc-trouble.
Otherwise, use a custom runtime - http://go/colab-custom-runtime
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
tqdm/_tqdm.py in pandas(tclass, *targs, **tkwargs)
593 # pandas>=0.23.0
--> 594 from pandas.core.groupby.groupby import DataFrameGroupBy, \
595 SeriesGroupBy, GroupBy, PanelGroupBy
ImportError: cannot import name 'DataFrameGroupBy'
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
1 frames
<ipython-input-15-aa3b5d28091d> in <module>()
7 from tqdm import tqdm
8
----> 9 tqdm.pandas()
10
11 RESULT_ENTRY_COL = 'COLUMN'
tqdm/_tqdm.py in pandas(tclass, *targs, **tkwargs)
595 SeriesGroupBy, GroupBy, PanelGroupBy
596 except ImportError:
--> 597 from pandas.core.groupby import DataFrameGroupBy, \
598 SeriesGroupBy, GroupBy, PanelGroupBy
599
ImportError: cannot import name 'PanelGroupBy' |
@chunfengh you're definitely not using |
When using tqdm v4.23.3 and pandas v0.23.0, I get this error:
It looks like pandas has moved GroupBy to a submodule, and PanelGroupBy is not included in pandas/core/groupby/__init__.py, though it remains in pandas/core/groupby/groupby.py.
Thus, for the latest version of pandas, PanelGroupBy can only be imported using
from pandas.core.groupby.groupby import PanelGroupBy
.I've reverted to the previous version of pandas and that fixed the problem, so this is a heads up for the newest and future pandas versions.
The text was updated successfully, but these errors were encountered: