Skip to main content
Version: 1.1.0

Expr.or_

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
others

expressions 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 │
╞══════╪══════╡
11
1515
1819
6061
│ null ┆ null │
└──────┴──────┘