Skip to content

Commit 7a0968c

Browse files
committed
TYP: add types to DataFrame._get_agg_axis
1 parent 04f2c2b commit 7a0968c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8441,7 +8441,7 @@ def idxmax(self, axis=0, skipna=True) -> Series:
84418441
result = [index[i] if i >= 0 else np.nan for i in indices]
84428442
return Series(result, index=self._get_agg_axis(axis))
84438443

8444-
def _get_agg_axis(self, axis_num):
8444+
def _get_agg_axis(self, axis_num: int) -> Index:
84458445
"""
84468446
Let's be explicit about this.
84478447
"""

0 commit comments

Comments
 (0)