ibis.expr.api.NumericValue.nullifzero

NumericValue.nullifzero(arg)

Set values to NULL if they equal to zero. Commonly used in cases where divide-by-zero would produce an overflow or infinity.

Equivalent to (value == 0).ifelse(ibis.NA, value)

Returns:maybe_nulled : type of caller