pandas.Series.clip_upper

Series.clip_upper(threshold)

Return copy of input with values above given value truncated

Returns:clipped : same type as input

See also

clip