xarray.Dataset.drop_vars#
- Dataset.drop_vars(names, *, errors='raise')[source]#
Drop variables from this dataset.
- Parameters:
names (hashable or iterable of hashable) – Name(s) of variables to drop.
errors (
{"raise", "ignore"}
, default:"raise"
) – If ‘raise’, raises a ValueError error if any of the variable passed are not in the dataset. If ‘ignore’, any given names that are in the dataset are dropped and no error is raised.
- Returns:
dropped (
Dataset
)