Method: Polars::Functions#approx_n_unique
- Defined in:
- lib/polars/functions/lazy.rb
#approx_n_unique(*columns) ⇒ Expr
Approximate count of unique values.
This function is syntactic sugar for col(columns).approx_n_unique
, and
uses the HyperLogLog++ algorithm for cardinality estimation.
403 404 405 |
# File 'lib/polars/functions/lazy.rb', line 403 def approx_n_unique(*columns) col(*columns).approx_n_unique end |