xarray.DataArray.drop_sel¶
-
DataArray.
drop_sel
(labels=None, *, errors='raise', **labels_kwargs)¶ Drop index labels from this DataArray.
- Parameters
errors (
{"raise", "ignore"}
, optional) – If ‘raise’ (default), raises a ValueError error if any of the index labels passed are not in the dataset. If ‘ignore’, any given labels that are in the dataset are dropped and no error is raised.**labels_kwargs (
{dim: label, ...}
, optional) – The keyword arguments form ofdim
andlabels
- Returns
dropped
- Return type