polars math bitwise-xor for dataframe
Perform an aggregation of bitwise XORs over a column expression.
Signature
> polars math bitwise-xor {flags}
Input/output types:
| input | output |
|---|---|
| polars_expression | polars_expression |
| polars_selector | polars_expression |
Examples
Perform an aggregation of bitwise XORs
> [[n]; [7] [5]] |
polars into-df |
polars select (polars col n | polars math bitwise-xor | polars as n) |
polars collect
╭───┬───╮
│ # │ n │
├───┼───┤
│ 0 │ 2 │
╰───┴───╯