Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Return an RDD with the values of each tuple

# values()

m = sc.parallelize([(1, 2), (3, 4)]).values()
m.collect()
# [2, 4]
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #Return #RDD #values #tuple
ADD COMMENT
Topic
Name
1+7 =