@@ -1014,22 +1014,18 @@ class TimeGrouper(Grouper):
10141014 Parameters
10151015 ----------
10161016 freq : pandas date offset or offset alias for identifying bin edges
1017- closed : closed end of interval; left or right
1018- label : interval boundary to use for labeling; left or right
1019- nperiods : optional, integer
1017+ closed : closed end of interval; 'left' or 'right'
1018+ label : interval boundary to use for labeling; 'left' or 'right'
10201019 convention : {'start', 'end', 'e', 's'}
10211020 If axis is PeriodIndex
1022-
1023- Notes
1024- -----
1025- Use begin, end, nperiods to generate intervals that cannot be derived
1026- directly from the associated object
10271021 """
1022+ _attributes = Grouper ._attributes + ('closed' , 'label' , 'how' ,
1023+ 'loffset' , 'kind' , 'convention' ,
1024+ 'base' )
10281025
10291026 def __init__ (self , freq = 'Min' , closed = None , label = None , how = 'mean' ,
1030- nperiods = None , axis = 0 ,
1031- fill_method = None , limit = None , loffset = None , kind = None ,
1032- convention = None , base = 0 , ** kwargs ):
1027+ axis = 0 , fill_method = None , limit = None , loffset = None ,
1028+ kind = None , convention = None , base = 0 , ** kwargs ):
10331029 freq = to_offset (freq )
10341030
10351031 end_types = set (['M' , 'A' , 'Q' , 'BM' , 'BA' , 'BQ' , 'W' ])
@@ -1048,7 +1044,6 @@ def __init__(self, freq='Min', closed=None, label=None, how='mean',
10481044
10491045 self .closed = closed
10501046 self .label = label
1051- self .nperiods = nperiods
10521047 self .kind = kind
10531048
10541049 self .convention = convention or 'E'
0 commit comments