polars::prelude

Function replace

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

Replace values by different values of the same data type.