@@ -1014,22 +1014,18 @@ class TimeGrouper(Grouper):
1014
1014
Parameters
1015
1015
----------
1016
1016
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'
1020
1019
convention : {'start', 'end', 'e', 's'}
1021
1020
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
1027
1021
"""
1022
+ _attributes = Grouper ._attributes + ('closed' , 'label' , 'how' ,
1023
+ 'loffset' , 'kind' , 'convention' ,
1024
+ 'base' )
1028
1025
1029
1026
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 ):
1033
1029
freq = to_offset (freq )
1034
1030
1035
1031
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',
1048
1044
1049
1045
self .closed = closed
1050
1046
self .label = label
1051
- self .nperiods = nperiods
1052
1047
self .kind = kind
1053
1048
1054
1049
self .convention = convention or 'E'
0 commit comments