pyspark.sql.functions.
sum_distinct
Aggregate function: returns the sum of distinct values in the expression.
New in version 3.2.
previous
pyspark.sql.functions.sum
next
pyspark.sql.functions.sumDistinct