Series.clip()
pandas.Series.clip
-
Series.clip(lower=None, upper=None, axis=None, *args, **kwargs)
-
Trim values at input threshold(s).
Parameters: lower : float or array_like, default None
upper : float or array_like, default None
axis : int or string axis name, optional
Align object with lower and upper along the given axis.
Returns: clipped : Series
Examples
>>> df 0 1 0 0.335232