Answers for "Add up the elements in this RDD"

0

Add up the elements in this RDD

# sum()

sc.parallelize([1.0, 2.0, 3.0]).sum()
# 6.0
Posted by: Guest on March-12-2020

Code answers related to "Add up the elements in this RDD"

Python Answers by Framework

Browse Popular Code Answers by Language