From d8f759c7b5c49811b5d4ce54a63a10f8069dc497 Mon Sep 17 00:00:00 2001 From: keewis Date: Sat, 15 May 2021 13:59:45 +0200 Subject: [PATCH] fix drop_dims docs (#5313) * document the default value * replace labels with dimensions [skip-ci] --- xarray/core/dataset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index abc4a0795d6..f59b9b6bea5 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -4417,10 +4417,10 @@ def drop_dims( ---------- drop_dims : hashable or iterable of hashable Dimension or dimensions to drop. - errors : {"raise", "ignore"}, optional - If 'raise' (default), raises a ValueError error if any of the + errors : {"raise", "ignore"}, default: "raise" + If 'raise', raises a ValueError error if any of the dimensions passed are not in the dataset. If 'ignore', any given - labels that are in the dataset are dropped and no error is raised. + dimensions that are in the dataset are dropped and no error is raised. Returns -------