def get_resampler_for_grouping(groupby, rule, how=None, fill_method=None,<EOL>limit=None, kind=None, **kwargs):
<EOL>kwargs['<STR_LIT:key>'] = kwargs.pop('<STR_LIT>', None)<EOL>tg = TimeGrouper(freq=rule, **kwargs)<EOL>resampler = tg._get_resampler(groupby.obj, kind=kind)<EOL>r = resampler._get_resampler_for_grouping(groupby=groupby)<EOL>return _maybe_process_deprecations(r,<EOL>how=how,<EOL>fill_method=fill_method,<EOL>limit=limit)<EOL>
Return our appropriate resampler when grouping as well.