pyspark.sql.functions.
approxCountDistinct
Deprecated since version 2.1.0: Use approx_count_distinct() instead.
approx_count_distinct()
New in version 1.3.