pyspark.sql.functions.
approxCountDistinct
New in version 1.3.0.
Changed in version 3.4.0: Supports Spark Connect.
Deprecated since version 2.1.0: Use approx_count_distinct() instead.
approx_count_distinct()