polars_ops::series

Function clip

Source
pub fn clip(s: &Series, min: &Series, max: &Series) -> PolarsResult<Series>
Expand description

Set values outside the given boundaries to the boundary value.