def resample(obj, kind=None, **kwds):
    """
    Create a TimeGrouper and return our resampler.
    """
    tg = TimeGrouper(**kwds)
    return tg._get_resampler(obj, kind=kind)
def resample ( obj , kind = None , ** kwds ) : tg = TimeGrouper ( ** kwds ) return tg . _get_resampler ( obj , kind = kind )
Create a TimeGrouper and return our resampler.