polars arg-unique for dataframe

Returns indexes for unique values.

Signature

> polars arg-unique {flags}

Input/output types:

inputoutput
anyany

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
╰───┴────────────╯