ibis.expr.api.ValueExpr.coalesce

ValueExpr.coalesce()

Compute the first non-null value(s) from the passed arguments in left-to-right order. This is also known as “combine_first” in pandas.

Parameters

*args (variable-length value list) –

Examples

>>> import ibis
>>> expr1 = None
>>> expr2 = 4
>>> result = ibis.coalesce(expr1, expr2, 5)
Returns

coalesced

Return type

type of first provided argument