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