polars-style when(pred).then(v).otherwise(v) — the result type is the union of the branch types.
when(pred).then(v).otherwise(v)
polars-style
when(pred).then(v).otherwise(v)— the result type is the union of the branch types.