# xarray.groupers.Resampler

### *class* xarray.groupers.Resampler[[source]](https://github.com/pydata/xarray/blob/main/xarray/groupers.py#L180-L206)

Abstract base class for Grouper objects that allow specializing resampling-type GroupBy instructions.

Currently only used for TimeResampler, but could be used for SpaceResampler in the future.

#### \_\_init_\_()

### Methods

| [`__init__`](#xarray.groupers.Resampler.__init__)()   |                                                            |
|---------------------------------------------------------------|------------------------------------------------------------|
| `compute_chunks`(variable, \*, dim)                           | Compute chunk sizes for this resampler.                    |
| `factorize`(group)                                            | Creates intermediates necessary for GroupBy.               |
| `reset`()                                                     | Creates a new version of this Grouper clearing any caches. |
