categoricalWhen
The elementwise select for categorical branches (the when contract of ADR-2026-10-23-08: a null mask slot reads null; the selected branch's null stays null; the output carries one shared dictionary - both branches reconcile onto it first).
Parameters
mask | the BOOLEAN selector |
a | the true branch (CATEGORICAL) |
b | the false branch (CATEGORICAL, same dtype) |
Returns
the selected CATEGORICAL Series.