polars arg-max
for dataframe
Return index for max value in series.
Signature
> polars arg-max {flags}
Input/output types:
input | output |
---|---|
any | any |
Examples
Returns index for max value
> [1 3 2] | polars into-df | polars arg-max
╭───┬─────────╮
│ # │ arg_max │
├───┼─────────┤
│ 0 │ 1 │
╰───┴─────────╯