File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 93
93
from pandas .core .arrays .datetimelike import DatetimeLikeArrayMixin as DatetimeLikeArray
94
94
from pandas .core .arrays .sparse import SparseFrameAccessor
95
95
from pandas .core .generic import NDFrame , _shared_docs
96
- from pandas .core .groupby import generic as grp_generic
96
+ from pandas .core .groupby import generic as groupby_generic
97
97
from pandas .core .indexes import base as ibase
98
98
from pandas .core .indexes .api import Index , ensure_index , ensure_index_from_sequences
99
99
from pandas .core .indexes .datetimes import DatetimeIndex
@@ -5572,13 +5572,13 @@ def groupby(
5572
5572
group_keys : bool = True ,
5573
5573
squeeze : bool = False ,
5574
5574
observed : bool = False ,
5575
- ) -> "grp_generic .DataFrameGroupBy" :
5575
+ ) -> "groupby_generic .DataFrameGroupBy" :
5576
5576
5577
5577
if level is None and by is None :
5578
5578
raise TypeError ("You have to supply one of 'by' and 'level'" )
5579
5579
axis = self ._get_axis_number (axis )
5580
5580
5581
- return grp_generic .DataFrameGroupBy (
5581
+ return groupby_generic .DataFrameGroupBy (
5582
5582
obj = self ,
5583
5583
keys = by ,
5584
5584
axis = axis ,
Original file line number Diff line number Diff line change 59
59
is_empty_data ,
60
60
sanitize_array ,
61
61
)
62
- from pandas .core .groupby import generic as grp_generic
62
+ from pandas .core .groupby import generic as groupby_generic
63
63
from pandas .core .indexers import maybe_convert_indices
64
64
from pandas .core .indexes .accessors import CombinedDatetimelikeProperties
65
65
from pandas .core .indexes .api import (
@@ -1631,13 +1631,13 @@ def groupby(
1631
1631
group_keys : bool = True ,
1632
1632
squeeze : bool = False ,
1633
1633
observed : bool = False ,
1634
- ) -> "grp_generic .SeriesGroupBy" :
1634
+ ) -> "groupby_generic .SeriesGroupBy" :
1635
1635
1636
1636
if level is None and by is None :
1637
1637
raise TypeError ("You have to supply one of 'by' and 'level'" )
1638
1638
axis = self ._get_axis_number (axis )
1639
1639
1640
- return grp_generic .SeriesGroupBy (
1640
+ return groupby_generic .SeriesGroupBy (
1641
1641
obj = self ,
1642
1642
keys = by ,
1643
1643
axis = axis ,
You can’t perform that action at this time.
0 commit comments