polars::prelude

Function clip

Source
pub fn clip(
    s: &Series,
    min: &Series,
    max: &Series,
) -> Result<Series, PolarsError>
Available on crate feature polars-ops only.
Expand description

Set values outside the given boundaries to the boundary value.