Skip to content

tqdm.pandas() not working under pandas 0.25.0 #780

@martinfleis

Description

@martinfleis

Under new pandas 0.25.0, tqdm.pandas() will cause ImportError probably due to the changes of Groupbybehaviour in pandas (https://pandas.pydata.org/pandas-docs/stable/whatsnew/v0.25.0.html). Full error message below. Issue is the same under Linux as well as macOS, tqdm version is '4.32.2'. Detail are here https://travis-ci.org/martinfleis/momepy/jobs/561121151/.

Traceback (most recent call last):
  File "/Users/martin/anaconda3/envs/momepy37/lib/python3.7/site-packages/tqdm/_tqdm.py", line 613, in pandas
    from pandas.core.groupby.groupby import DataFrameGroupBy, \
ImportError: cannot import name 'DataFrameGroupBy' from 'pandas.core.groupby.groupby' (/Users/martin/anaconda3/envs/momepy37/lib/python3.7/site-packages/pandas/core/groupby/groupby.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/martin/anaconda3/envs/momepy37/lib/python3.7/site-packages/tqdm/_tqdm.py", line 616, in pandas
    from pandas.core.groupby import DataFrameGroupBy, \
ImportError: cannot import name 'PanelGroupBy' from 'pandas.core.groupby' (/Users/martin/anaconda3/envs/momepy37/lib/python3.7/site-packages/pandas/core/groupby/__init__.py)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions