diff --git a/xarray/core/groupers.py b/xarray/core/groupers.py index fd84a91b6ac..e33cd3ad99f 100644 --- a/xarray/core/groupers.py +++ b/xarray/core/groupers.py @@ -34,6 +34,8 @@ "TimeResampler", ] +RESAMPLE_DIM = "__resample_dim__" + @dataclass class EncodedGroups: diff --git a/xarray/core/resample.py b/xarray/core/resample.py index 9181bb4ee9b..ceab0a891c9 100644 --- a/xarray/core/resample.py +++ b/xarray/core/resample.py @@ -15,7 +15,7 @@ from xarray.core.dataarray import DataArray from xarray.core.dataset import Dataset -RESAMPLE_DIM = "__resample_dim__" +from xarray.core.groupers import RESAMPLE_DIM class Resample(GroupBy[T_Xarray]):