polars arg-true for dataframe
Returns indexes where values are true.
Signature
> polars arg-true {flags}
Input/output types:
| input | output |
|---|---|
| polars_dataframe | polars_dataframe |
| polars_lazyframe | polars_lazyframe |
Examples
Returns indexes where values are true
> [false true false] | polars into-df | polars arg-true
╭───┬──────────╮
│ # │ arg_true │
├───┼──────────┤
│ 0 │ 1 │
╰───┴──────────╯