# xarray.Coordinates.rename_dims

#### Coordinates.rename_dims(dims_dict=None, \*\*dims)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/coordinates.py#L836-L858)

Returns a new object with renamed dimensions only.

* **Parameters:**
  * **dims_dict** ([dict-like](https://docs.python.org/3/glossary.html#term-mapping), *optional*) – Dictionary whose keys are current dimension names and
    whose values are the desired names. The desired names must
    not be the name of an existing dimension or Variable in the Coordinates.
  * **\*\*dims** (**optional**) – Keyword form of `dims_dict`.
    One of dims_dict or dims must be provided.
* **Returns:**
  **renamed** ([`Coordinates`](xarray.Coordinates.html.md#xarray.Coordinates)) – Coordinates object with renamed dimensions.
