pandas.Series.squeeze
-
Series.squeeze(axis=None)
[source] -
Squeeze length 1 dimensions.
Parameters: axis : None, integer or string axis name, optional
The axis to squeeze if 1-sized.
New in version 0.20.0.
Returns: - scalar if 1-sized, else original object
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Series.squeeze.html