A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.xarray.dev/en/stable/generated/xarray.DataArray.rename.html below:

xarray.DataArray.rename

xarray.DataArray.rename#
DataArray.rename(new_name_or_name_dict=None, **names)[source]#

Returns a new DataArray with renamed coordinates, dimensions or a new name.

Parameters:
  • new_name_or_name_dict (str or dict-like, optional) – If the argument is dict-like, it used as a mapping from old names to new names for coordinates or dimensions. Otherwise, use the argument as the new name for this array.

  • **names (Hashable, optional) – The keyword arguments form of a mapping from old names to new names for coordinates or dimensions. One of new_name_or_name_dict or names must be provided.

Returns:

renamed (DataArray) – Renamed array or array with renamed coordinates.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4