W3cubDocs

/pandas 0.23

pandas.Series.clip_upper

Series.clip_upper(threshold, axis=None, inplace=False) [source]

Return copy of input with values above given value(s) truncated.

Parameters:
threshold : float or array_like

axis : int or string axis name, optional

Align object with threshold along the given axis.

inplace : boolean, default False

Whether to perform the operation in place on the data

New in version 0.21.0.

Returns:
clipped : same type as input

See also

clip

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Series.clip_upper.html