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:
toddrme2178 2018-05-17 15:33:25 -04:00 committed by Casper da Costa-Luis
parent 4f116cd595
commit 39f8d61507
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 11 additions and 4 deletions

View File

@ -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)]