Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Compute the mean of this RDD’s elements.

sc.parallelize([1, 2, 3]).mean()
# 2.0
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #Compute
ADD COMMENT
Topic
Name
7+2 =