We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc96ae commit f6ba50aCopy full SHA for f6ba50a
pandas/_typing.py
@@ -109,7 +109,7 @@
109
110
Axis = Union[str, int]
111
IndexLabel = Union[Hashable, Sequence[Hashable]]
112
-Level = Union[Hashable, int]
+Level = Hashable
113
Shape = Tuple[int, ...]
114
Suffixes = Tuple[Optional[str], Optional[str]]
115
Ordered = Optional[bool]
pandas/core/frame.py
@@ -8125,7 +8125,7 @@ def groupby(
8125
self,
8126
by=None,
8127
axis: Axis = 0,
8128
- level: Level | None = None,
+ level: IndexLabel | None = None,
8129
as_index: bool = True,
8130
sort: bool = True,
8131
group_keys: bool | lib.NoDefault = no_default,
0 commit comments