pub fn replace_strict(
s: &Series,
old: &Series,
new: &Series,
return_dtype: Option<DataType>,
) -> Result<Series, PolarsError>
Available on crate feature
polars-ops
only.Expand description
Replace all values by different values.
Raises an error if not all values were replaced.