parameters: (
      groupby, rule, how=None, fill_method=None, limit=None, kind=None, on=None, **kwargs
  )
return_statement: return resampler._get_resampler_for_grouping(groupby=groupby)
docstring: Return our appropriate resampler when grouping as well.
docstring_summary: Return our appropriate resampler when grouping as well.
docstring_tokens: Return our appropriate resampler when grouping as well .
function: def get_resampler_for_grouping(
      groupby, rule, how=None, fill_method=None, limit=None, kind=None, on=None, **kwargs
  ):
      """
      Return our appropriate resampler when grouping as well.
      """
      # .resample uses 'on' similar to how .groupby uses 'key'
      tg = TimeGrouper(freq=rule, key=on, **kwargs)
      resampler = tg._get_resampler(groupby.obj, kind=kind)
      return resampler._get_resampler_for_grouping(groupby=groupby)
function_tokens: def get_resampler_for_grouping ( groupby , rule , how = None , fill_method = None , limit = None , kind = None , on = None , * * kwargs ) : # .resample uses 'on' similar to how .groupby uses 'key' tg = TimeGrouper ( freq = rule , key = on , * * kwargs ) resampler = tg . _get_resampler ( groupby . obj , kind = kind ) return resampler . _get_resampler_for_grouping ( groupby = groupby )