Skip to content
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

Closed
aaronkollasch opened this Issue May 17, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@aaronkollasch
Copy link

aaronkollasch commented May 17, 2018

When using tqdm v4.23.3 and pandas v0.23.0, I get this error:

>>> from tqdm import tqdm
>>> tqdm.pandas()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/username/.conda/envs/py36/lib/python3.6/site-packages/tqdm/_tqdm.py", line 545, in pandas
    from pandas.core.groupby import PanelGroupBy
ImportError: cannot import name 'PanelGroupBy'

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.

@andrewnc

This comment has been minimized.

Copy link

andrewnc commented May 30, 2018

What is the status on this fix?

@casperdcl

This comment has been minimized.

Copy link
Member

casperdcl commented May 31, 2018

should be fixed in tqdm>=4.23.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.