Skip to main content
Version: 1.3.0

Expr.xor

def xor(other: Any) -> Expr

Categories: logic

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

Parameters

parameter
other

expression to peform the bitwise xor with.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf.select(td.col("val"), td.col("val").xor(8).alias("xor"))
>>>
┌─────┬─────┐
│ val ┆ xor │
------
│ i64 ┆ i64 │
╞═════╪═════╡
08
3022
6052
9082
└─────┴─────┘