pub fn replace_or_default(
s: &Series,
old: &Series,
new: &Series,
default: &Series,
return_dtype: Option<DataType>,
) -> Result<Series, PolarsError>
Available on crate feature
polars-ops
only.Expand description
Replace all values by different values.
Unmatched values are replaced by a default value.