^¶
- ColExpr.__xor__( ) ColExpr[Bool][source]¶
Boolean XOR (__xor__)
Examples
>>> t = pdt.Table( ... { ... "a": [True, True, True, False, False, None], ... "b": [True, False, None, False, None, None], ... }, ... name="bool table", ... ) >>> t >> mutate(x=t.a ^ t.b) >> show() Table bool table, backend: PolarsImpl shape: (6, 3) ┌───────┬───────┬───────┐ │ a ┆ b ┆ x │ │ --- ┆ --- ┆ --- │ │ bool ┆ bool ┆ bool │ ╞═══════╪═══════╪═══════╡ │ true ┆ true ┆ false │ │ true ┆ false ┆ true │ │ true ┆ null ┆ null │ │ false ┆ false ┆ false │ │ false ┆ null ┆ null │ │ null ┆ null ┆ null │ └───────┴───────┴───────┘