return an rdd with the keys of each tuple

Solutions on MaxInterview for return an rdd with the keys of each tuple by the best coders in the world

showing results for - "return an rdd with the keys of each tuple "
Minnie
17 Sep 2017
1m = sc.parallelize([1, 2), (3, 4)]).keys()
2m.collect()
3# [1, 3]