DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+1 =
Submit