#NEWLINE# def _convert_freq( self , how = None ) : #NEWLINE# #INDENT# ' resample according to the how, return a new object ' #NEWLINE# obj = self . _selected_obj #NEWLINE# if ( ( self . freq is not None ) and isinstance ( obj , ( com . ABCSeries , com . ABCDataFrame ) ) ) : #NEWLINE# #INDENT# if ( how is not None ) : #NEWLINE# #INDENT# warnings . warn ( 'The how kw argument is deprecated and removed in a future version. You can resample prior to passing to a window function' , FutureWarning , stacklevel = 6 ) #NEWLINE# #UNINDENT# obj = obj . resample ( self . freq ) . aggregate ( ( how or 'asfreq' ) ) #NEWLINE# #UNINDENT# return self