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