pyspark.sql.functions.sum_distinct

pyspark.sql.functions.sum_distinct(col: ColumnOrName) → pyspark.sql.column.Column[source]

Aggregate function: returns the sum of distinct values in the expression.

New in version 3.2.