Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Return the number of elements in this RDD.

sc.parallelize([2, 3, 4]).count()
# 3
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #Return #number #elements
ADD COMMENT
Topic
Name
2+9 =