pyspark.sql.functions.
approxCountDistinct
Note
Deprecated in 2.1, use approx_count_distinct() instead.
approx_count_distinct()
New in version 1.3.