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