Series.clip(lower=None, upper=None, axis=None, *args, **kwargs) [source]
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 -1.256177
1 -1.367855 0.746646
2 0.027753 -1.176076
3 0.230930 -0.679613
4 1.261967 0.570967
>>>