ibis.where

ibis.where(boolean_expr, true_expr, false_null_expr)

Equivalent to the ternary expression: if X then Y else Z

Parameters
boolean_exprBooleanValue (array or scalar)
true_exprvalue

Values for each True value

false_null_exprvalue

Values for False or NULL values

Returns
resultarity depending on inputs

Type of true_expr used to determine output type