From 5dfacd6317a6a5845b5a6e97eba45ca64c9caacb Mon Sep 17 00:00:00 2001 From: Jason Mok Date: Mon, 25 Nov 2024 12:22:44 -0500 Subject: [PATCH] DOC: Add type hint for squeeze method --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 56031f20faa16..732dbaee24ce0 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -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.