-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
What happened:
http://xarray.pydata.org/en/stable/generated/xarray.DataArray.rename.html#xarray.DataArray.rename
states that:
Returns a new DataArray with renamed coordinates or a new name.
What you expected to happen:
It should state:
"Returns a new DataArray with renamed coordinates, dimensions or a new name."
Since it definitely can do that.
Minimal example
xr.DataArray([1, 2, 3]).rename({"dim_0": "new"})
Further
While at it: Dataset.rename als does not mention explicitly that you can rename coordinates.
TomNicholas and max-sixty