Skip to content

Commit 652a39f

Browse files
authored
TYP: add types to DataFrame._get_agg_axis (#33722)
1 parent eb965cf commit 652a39f

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
@@ -8548,7 +8548,7 @@ def idxmax(self, axis=0, skipna=True) -> Series:
85488548
result = [index[i] if i >= 0 else np.nan for i in indices]
85498549
return Series(result, index=self._get_agg_axis(axis))
85508550

8551-
def _get_agg_axis(self, axis_num):
8551+
def _get_agg_axis(self, axis_num: int) -> Index:
85528552
"""
85538553
Let's be explicit about this.
85548554
"""

0 commit comments

Comments
 (0)