pandas 0.9.0 documentation

pandas.Series.clip

Series.clip(lower=None, upper=None, out=None)

Trim values at input threshold(s)

Parameters :

lower : float, default None

upper : float, default None

Returns :

clipped : Series