polars arg-max for dataframe
Return index for max value in series.
Signature
> polars arg-max {flags}
Input/output types:
| input | output |
|---|---|
| polars_dataframe | polars_dataframe |
| polars_lazyframe | polars_lazyframe |
Examples
Returns index for max value
> [1 3 2] | polars into-df | polars arg-max ╭───┬─────────╮ │ # │ arg_max │ ├───┼─────────┤ │ 0 │ 1 │ ╰───┴─────────╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/polars_arg-max.html