Skip to main content
Version: 0.9.3

Expr.and_

def and_(*others: Any) -> Expr

Categories: logic

Bitwise and operator with the given expressions. It can be used with integer and bool types.

Parameters

parameter
others

expressions to peform the bitwise and with.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf.select(td.col("i"), td.col("i").and_(2).alias("and_"))
>>>
┌──────┬──────┐
│ i ┆ and_ │
------
│ i64 ┆ i64 │
╞══════╪══════╡
-12
22
-30
00
50
72
│ null ┆ null │
└──────┴──────┘