polars.Expr.n_unique

Expr.n_unique() polars.internals.expr.Expr

Count unique values.