Skip to content

Commit

Permalink
DOC: Add type hint for squeeze method (pandas-dev#60415)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Roeschke <[email protected]>
  • Loading branch information
jasonmokk and mroeschke authored Nov 26, 2024
1 parent 98f7e4d commit 106f33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def pop(self, item: Hashable) -> Series | Any:
return result

@final
def squeeze(self, axis: Axis | None = None):
def squeeze(self, axis: Axis | None = None) -> Scalar | Series | DataFrame:
"""
Squeeze 1 dimensional axis objects into scalars.
Expand Down

0 comments on commit 106f33c

Please sign in to comment.