diff --git a/xarray/core/common.py b/xarray/core/common.py index c461da3088c..52a00911d19 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -1060,10 +1060,7 @@ def _resample( dim_coord = self[dim] group = DataArray( - dim_coord, - coords=dim_coord.coords, - dims=dim_coord.dims, - name=RESAMPLE_DIM, + dim_coord, coords=dim_coord.coords, dims=dim_coord.dims, name=RESAMPLE_DIM ) grouper: Resampler