W3cubDocs

/Nushell

dfr arg-max for dataframe

Return index for max value in series.

Signature

> dfr arg-max {flags}

Input/output types:

input output
any any

Examples

Returns index for max value

> [132] |dfr into-df|dfr arg-max
╭───┬─────────╮
# │ arg_max │
├───┼─────────┤
01
╰───┴─────────╯

Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_arg-max.html