Dataset.drop(labels, dim=None)

Drop variables or index labels from this dataset.

If a variable corresponding to a dimension is dropped, all variables that use that dimension are also dropped.


labels : str

Names of variables or index labels to drop.

dim : None or str, optional

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


dropped : Dataset