pyspark.sql.functions.sum

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

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

New in version 1.3.