ibis.expr.api.ValueExpr.coalesce¶
-
ValueExpr.
coalesce
(*args)¶ 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 Returns: coalesced : type of first provided argument Examples
>>> import ibis >>> expr1 = None >>> expr2 = 4 >>> result = ibis.coalesce(expr1, expr2, 5)