mirror of https://github.com/tqdm/tqdm.git
Support pandas 0.23.0 `core.groupby` module layout
`pandas.core.groupby` has been moved to `pandas.core.groupby.groupby` for pandas 0.23.0. See pandas pull request [#20506](https://github.com/pandas-dev/pandas/pull/20506).
This commit is contained in:
parent
4f116cd595
commit
39f8d61507
|
@ -539,16 +539,23 @@ class tqdm(Comparable):
|
|||
"""
|
||||
from pandas.core.frame import DataFrame
|
||||
from pandas.core.series import Series
|
||||
from pandas.core.groupby import DataFrameGroupBy
|
||||
from pandas.core.groupby import SeriesGroupBy
|
||||
from pandas.core.groupby import GroupBy
|
||||
from pandas.core.groupby import PanelGroupBy
|
||||
from pandas import Panel
|
||||
try:
|
||||
# pandas>=0.18.0
|
||||
from pandas.core.window import _Rolling_and_Expanding
|
||||
except ImportError: # pragma: no cover
|
||||
_Rolling_and_Expanding = None
|
||||
try:
|
||||
# pandas>=0.23.0
|
||||
from pandas.core.groupby.groupby import DataFrameGroupBy
|
||||
from pandas.core.groupby.groupby import SeriesGroupBy
|
||||
from pandas.core.groupby.groupby import GroupBy
|
||||
from pandas.core.groupby.groupby import PanelGroupBy
|
||||
except ImportError:
|
||||
from pandas.core.groupby import DataFrameGroupBy
|
||||
from pandas.core.groupby import SeriesGroupBy
|
||||
from pandas.core.groupby import GroupBy
|
||||
from pandas.core.groupby import PanelGroupBy
|
||||
|
||||
deprecated_t = [tkwargs.pop('deprecated_t', None)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue