xray.DataArray.rename

DataArray.rename(new_name_or_name_dict)

Returns a new DataArray with renamed variables.

If the argument is a string, rename this DataArray’s arary variable. Otherwise, the argument is assumed to be a mapping from old names to new names for dataset variables.

See also

Dataset.rename