def ifelse(arg, true_expr, false_expr):
    # Result will be the result of promotion of true/false exprs. These
    # might be conflicting types; same type resolution as case expressions
    # must be used.
    case = _ops.SearchedCaseBuilder()
    return case.when(arg, true_expr).else_(false_expr).end()
Shorthand for implementing ternary expressions
dataset/ETHPy150Open cloudera/ibis/ibis/expr/api.py/ifelse