# xarray.groupers.Grouper

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

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

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

### Methods

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