You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
What happened:
http://xarray.pydata.org/en/stable/generated/xarray.DataArray.rename.html#xarray.DataArray.rename
states that:
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
Further
While at it: Dataset.rename als does not mention explicitly that you can rename coordinates.
The text was updated successfully, but these errors were encountered: