From 12a44fe4692940bf88c73c7e30964085dbd5fa0c Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Thu, 22 Feb 2024 20:10:49 -0700 Subject: [PATCH] Fixes --- xarray/core/groupby.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xarray/core/groupby.py b/xarray/core/groupby.py index 54562b6923f..8c6ffd5a797 100644 --- a/xarray/core/groupby.py +++ b/xarray/core/groupby.py @@ -55,7 +55,7 @@ GroupIndex = Union[int, slice, list[int]] T_GroupIndices = list[GroupIndex] T_FactorizeOut = tuple[ - DataArray, T_GroupIndices, Union[pd.Index, "_DummyGroup"], pd.Index, DataArray + DataArray, T_GroupIndices, Union[pd.Index, "_DummyGroup"], pd.Index ] @@ -406,6 +406,10 @@ def factorize(self) -> None: class Grouper(ABC): + @property + def can_squeeze(self) -> bool: + return False + @abstractmethod def factorize(self, group) -> T_FactorizeOut: pass