DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Return an RDD with the keys of each tuple.
m = sc.parallelize([1, 2), (3, 4)]).keys() m.collect() # [1, 3]
Source by spark.apache.org #
PREVIOUS
NEXT
Tagged:
#Return
#RDD
#keys
ADD COMMENT
Topic
COMMENT
Name
7+6 =
Submit