Answers for "Return an RDD with the keys of each tuple."

-1

Return an RDD with the keys of each tuple.

m = sc.parallelize([1, 2), (3, 4)]).keys()
m.collect()
# [1, 3]
Posted by: Guest on March-11-2020

Code answers related to "Return an RDD with the keys of each tuple."

Python Answers by Framework

Browse Popular Code Answers by Language