diff --git a/xarray/core/common.py b/xarray/core/common.py index e2a5e0926a8..7e6bbc8b05f 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -60,7 +60,9 @@ def _reduce_method(cls, func: Callable, include_skipna: bool, numeric_only: bool if include_skipna: def wrapped_func(self, dim=None, axis=None, skipna=None, **kwargs): - return self.reduce(func, dim, axis, skipna=skipna, **kwargs) + return self.reduce( + func=func, dim=dim, axis=axis, skipna=skipna, **kwargs + ) else: