diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index 13a3a507c7b..e4379bd50fb 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -1453,7 +1453,7 @@ def swap_dims(self, dims_dict: Mapping[Hashable, Hashable]) -> "DataArray": Returns ------- - renamed : Dataset + swapped : Dataset DataArray with swapped dimensions. See Also diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 270ab81d264..e01d83dd0a3 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -2676,7 +2676,7 @@ def swap_dims( Returns ------- - renamed : Dataset + swapped : Dataset Dataset with swapped dimensions. See Also