#NEWLINE# def get_resampler_for_grouping( groupby , rule , how = None , fill_method = None , limit = None , kind = None , **kwargs ) : #NEWLINE# #INDENT# ' return our appropriate resampler when grouping as well ' #NEWLINE# tg = TimeGrouper ( freq = rule , ** kwargs ) #NEWLINE# resampler = tg . _get_resampler ( groupby . obj , kind = kind ) #NEWLINE# r = resampler . _get_resampler_for_grouping ( groupby = groupby ) #NEWLINE# return _maybe_process_deprecations ( r , how = how , fill_method = fill_method , limit = limit , ** kwargs )