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