RDD.
sum
Add up the elements in this RDD.
Examples
>>> sc.parallelize([1.0, 2.0, 3.0]).sum() 6.0
previous
pyspark.RDD.subtractByKey
next
pyspark.RDD.sumApprox