polars.n_unique

polars.n_unique(column: str) polars.internals.expr.Expr
polars.n_unique(column: polars.internals.series.Series) int

Count unique values.