polars.Series.approx_n_unique#

Series.approx_n_unique() → PythonLiteral | None[source]#

Approximate count of unique values.

This is done using the HyperLogLog++ algorithm for cardinality estimation.