pyspark.sql.functions.sum

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

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