reset_coords
- UnitsAwareDataArray.reset_coords(names: Optional[Union[Iterable[Hashable], Hashable]] = None, drop: bool = False) Union[None, xarray.core.dataarray.DataArray, xarray.core.dataset.Dataset]
Given names of coordinates, reset them to become variables.
- Parameters
names (hashable or iterable of hashable, optional) – Name(s) of non-index coordinates in this dataset to reset into variables. By default, all non-index coordinates are reset.
drop (bool, optional) – If True, remove coordinates instead of converting them into variables.
- Returns
- Return type
Dataset, or DataArray if
drop == True