pandas 0.7.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