tabsdata.tableframe.expr.expr.Expr.or_#
- Expr.or_(*others: Any) Expr [source]#
Bitwise or operator with the given expressions. It can be used with integer and bool types.
- Parameters:
others – expressions to peform the bitwise or with.
Example:
>>> 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 │ └──────┴──────┘