Expr.or_
methodView source ↗
def or_(*others: Any) -> Expr
Categories: logic
Bitwise or operator with the given expressions.
It can be used with integer and bool types.
Parameters
parameter
othersexpressions to peform the bitwise or with.
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").or_(1).alias("or"))
>>>
┌──────┬──────┐
│ val ┆ or │
│ --- ┆ --- │
│ i64 ┆ i64 │
╞══════╪══════╡
│ 1 ┆ 1 │
│ 15 ┆ 15 │
│ 18 ┆ 19 │
│ 60 ┆ 61 │
│ null ┆ null │
└──────┴──────┘