xarray.Dataset.drop

Dataset.drop(labels, dim=None)

Drop variables or index labels from this dataset.

Parameters
labelsscalar or list of scalars

Name(s) of variables or index labels to drop.

dimNone or str, optional

Dimension along which to drop index labels. By default (if dim is None), drops variables rather than index labels.

Returns
droppedDataset