bigframes.pandas.Series.clip#

Series.clip(lower=None,upper=None)[source]#

Trim values at input threshold(s).

Assigns values outside boundary to boundary values. Thresholds can besingular values or array like, and in the latter case the clipping isperformed element-wise in the specified axis.

Parameters:
  • lower (float orarray-like,default None) – Minimum threshold value. All values below this threshold willbe set to it. A missing threshold (e.g NA) will not clip the value.

  • upper (float orarray-like,default None) – Maximum threshold value. All values above this threshold willbe set to it. A missing threshold (e.g NA) will not clip the value.

Returns:

Series.

Return type:

bigframes.pandas.Series

On this page

This Page