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 99
99
from pandas .core .arrays .datetimelike import DatetimeLikeArrayMixin as DatetimeLikeArray
100
100
from pandas .core .arrays .sparse import SparseFrameAccessor
101
101
from pandas .core .generic import NDFrame , _shared_docs
102
- from pandas .core .groupby import generic as grp_generic
102
+ from pandas .core .groupby import generic as groupby_generic
103
103
from pandas .core .indexes import base as ibase
104
104
from pandas .core .indexes .api import Index , ensure_index , ensure_index_from_sequences
105
105
from pandas .core .indexes .datetimes import DatetimeIndex
@@ -5584,13 +5584,13 @@ def groupby(
5584
5584
group_keys : bool = True ,
5585
5585
squeeze : bool = False ,
5586
5586
observed : bool = False ,
5587
- ) -> "grp_generic .DataFrameGroupBy" :
5587
+ ) -> "groupby_generic .DataFrameGroupBy" :
5588
5588
5589
5589
if level is None and by is None :
5590
5590
raise TypeError ("You have to supply one of 'by' and 'level'" )
5591
5591
axis = self ._get_axis_number (axis )
5592
5592
5593
- return grp_generic .DataFrameGroupBy (
5593
+ return groupby_generic .DataFrameGroupBy (
5594
5594
obj = self ,
5595
5595
keys = by ,
5596
5596
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