ibis.ifelse

ibis.ifelse(arg, true_expr, false_expr)

Shorthand for implementing ternary expressions

bool_expr.ifelse(0, 1) e.g., in SQL: CASE WHEN bool_expr THEN 0 else 1 END