def get_resampler_for_grouping(groupby, rule, how=None, fill_method=None, limit=None, kind=None, **kwargs):
 tg = TimeGrouper(freq=rule, **kwargs)
 resampler = tg._get_resampler(groupby.obj, kind=kind)
 r = resampler._get_resampler_for_grouping(groupby=groupby)
 return _maybe_process_deprecations(r, how=how, fill_method=fill_method, limit=limit)

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