Get unique values
Description
This method differs from $value_counts()
in that it does
not return the values, only the counts and might be faster.
Usage
<Expr>$unique(..., maintain_order = FALSE)
Arguments
…
|
These dots are for future extensions and must be empty. |
maintain_order
|
Maintain order of data. This requires more work. |
Value
A polars expression
Examples
#> shape: (2, 1)
#> ┌─────┐
#> │ a │
#> │ --- │
#> │ f64 │
#> ╞═════╡
#> │ 1.0 │
#> │ 2.0 │
#> └─────┘