Dataset.rename(name_dict=None, inplace=None, **names)

Returns a new object with renamed variables and dimensions.

name_dict : dict-like, optional

Dictionary whose keys are current variable or dimension names and whose values are the desired names.

inplace : bool, optional

If True, rename variables and dimensions in-place. Otherwise, return a new dataset object.

**names, optional

Keyword form of name_dict. One of name_dict or names must be provided.

renamed : Dataset

Dataset with renamed variables and dimensions.