W3cubDocs

/Nushell

dfr arg-unique for dataframe

Returns indexes for unique values.

Signature

> dfr arg-unique {flags}

Input/output types:

input output
any any

Examples

Returns indexes for unique values

> [12233] |dfr into-df|dfr arg-unique
╭───┬────────────╮
# │ arg_unique │
├───┼────────────┤
00
11
23
╰───┴────────────╯

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-unique.html