Add up the elements in this RDD

32

# sum()

sc.parallelize([1.0, 2.0, 3.0]).sum()
# 6.0

Comments

Submit
0 Comments