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