Skip to content

Count unique values in Series

Source code

Description

Count unique values in Series

Usage

<Series>$n_unique()

Value

A numeric value

Examples

library("polars")

as_polars_series(c(1, 2, 1, 4, 4, 1, 5))$n_unique()
#> [1] 4