We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c7167 commit f829d02Copy full SHA for f829d02
pandas/core/groupby/ops.py
@@ -24,7 +24,7 @@
24
from pandas._libs import NaT, iNaT, lib
25
import pandas._libs.groupby as libgroupby
26
import pandas._libs.reduction as libreduction
27
-from pandas._typing import F, FrameOrSeries, Label
+from pandas._typing import F, FrameOrSeries, Label, Shape
28
from pandas.errors import AbstractMethodError
29
from pandas.util._decorators import cache_readonly
30
@@ -116,7 +116,7 @@ def groupings(self) -> List["grouper.Grouping"]:
116
return self._groupings
117
118
@property
119
- def shape(self) -> Tuple[int, ...]:
+ def shape(self) -> Shape:
120
return tuple(ping.ngroups for ping in self.groupings)
121
122
def __iter__(self):
0 commit comments