pub fn replace( s: &Series, old: &Series, new: &Series, ) -> Result<Series, PolarsError>
polars-ops
Replace values by different values of the same data type.