pandas 0.7.0 documentation

pandas.DataFrame.clip

DataFrame.clip(upper=None, lower=None)

Trim values at input threshold(s)

Parameters :

lower : float, default None

upper : float, default None

Returns :

clipped : DataFrame