# xarray.groupers.Grouper

### *class* xarray.groupers.Grouper[[source]](https://github.com/pydata/xarray/blob/main/xarray/groupers.py#L153-L177)

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

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

### Methods

| [`__init__`](#xarray.groupers.Grouper.__init__)()   |                                                            |
|---------------------------------------------------------------|------------------------------------------------------------|
| `factorize`(group)                                            | Creates intermediates necessary for GroupBy.               |
| `reset`()                                                     | Creates a new version of this Grouper clearing any caches. |
