# xarray.CFTimeIndex.groupby

#### CFTimeIndex.groupby(values)[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.14/site-packages/pandas/core/indexes/base.py#L6553-L6578)

Group the index labels by a given array of values.

* **Parameters:**
  **values** ([array](https://numpy.org/doc/stable/glossary.html#term-array)) – Values used to determine the groups.
* **Returns:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict) – {group name -> group labels}
