|
52 | 52 |
|
53 | 53 | from xarray.core.dataarray import DataArray |
54 | 54 | from xarray.core.dataset import Dataset |
55 | | - from xarray.core.groupers import Grouper |
56 | 55 | from xarray.core.types import GroupIndex, GroupIndices, GroupKey |
57 | 56 | from xarray.core.utils import Frozen |
| 57 | + from xarray.groupers import Grouper |
58 | 58 |
|
59 | 59 |
|
60 | 60 | def check_reduce_dims(reduce_dims, dimensions): |
@@ -581,7 +581,7 @@ def _iter_grouped(self) -> Iterator[T_Xarray]: |
581 | 581 | yield self._obj.isel({self._group_dim: indices}) |
582 | 582 |
|
583 | 583 | def _infer_concat_args(self, applied_example): |
584 | | - from xarray.core.groupers import BinGrouper |
| 584 | + from xarray.groupers import BinGrouper |
585 | 585 |
|
586 | 586 | (grouper,) = self.groupers |
587 | 587 | if self._group_dim in applied_example.dims: |
@@ -695,7 +695,7 @@ def _maybe_restore_empty_groups(self, combined): |
695 | 695 | """Our index contained empty groups (e.g., from a resampling or binning). If we |
696 | 696 | reduced on that dimension, we want to restore the full index. |
697 | 697 | """ |
698 | | - from xarray.core.groupers import BinGrouper, TimeResampler |
| 698 | + from xarray.groupers import BinGrouper, TimeResampler |
699 | 699 |
|
700 | 700 | (grouper,) = self.groupers |
701 | 701 | if ( |
@@ -731,7 +731,7 @@ def _flox_reduce( |
731 | 731 | from flox.xarray import xarray_reduce |
732 | 732 |
|
733 | 733 | from xarray.core.dataset import Dataset |
734 | | - from xarray.core.groupers import BinGrouper |
| 734 | + from xarray.groupers import BinGrouper |
735 | 735 |
|
736 | 736 | obj = self._original_obj |
737 | 737 | (grouper,) = self.groupers |
|
0 commit comments