Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Compute the variance of this RDD’s elements

# variance()

m = sc.parallelize([1, 2, 3]).variance()
# 0.666...
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #Compute #variance #elements
ADD COMMENT
Topic
Name
6+5 =