ibis.
ifelse
Shorthand for implementing ternary expressions
bool_expr.ifelse(0, 1) e.g., in SQL: CASE WHEN bool_expr THEN 0 else 1 END