ibis.expr.api.ValueExpr.nullif

ValueExpr.nullif(value, null_if_expr)

Set values to null if they match/equal a particular expression (scalar or array-valued).

Common use to avoid divide-by-zero problems (get NULL instead of INF on divide-by-zero): 5 / expr.nullif(0)

Parameters
valuevalue expression

Value to modify

null_if_exprvalue expression (array or scalar)
Returns
null_iftype of caller