pyspark.sql.functions.sum

pyspark.sql.functions.sum(col)[source]

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

New in version 1.3.