ibis.expr.api.ValueExpr.nullif¶
-
ValueExpr.
nullif
(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
value (value expression) – Value to modify
null_if_expr (value expression (array or scalar)) –
- Returns
null_if
- Return type
type of caller