Return an RDD with the keys of each tuple. code example
Example: Return an RDD with the keys of each tuple.
m = sc.parallelize([1, 2), (3, 4)]).keys()
m.collect()
# [1, 3]
m = sc.parallelize([1, 2), (3, 4)]).keys()
m.collect()
# [1, 3]