xray.DataArray.rename¶
- DataArray.rename(new_name_or_name_dict)¶
Returns a new DataArray with renamed coordinates and/or a new name.
If the argument is dict-like, it it used as a mapping from old names to new names for dataset variables. Otherwise, use the argument as the new name for this array.
See also