Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
Return an RDD with the keys of each tuple.
Supuhstar
Programming language:
Python
2021-03-07 19:15:16
0
Q:
Return an RDD with the keys of each tuple.
Papy
Code:
Python
2021-06-21 15:17:09
m = sc.parallelize([1, 2), (3, 4)]).keys() m.collect() # [1, 3]
-1
Tags
key
turn
return
Related
Return an RDD with the values of each tuple
python sort multiple keys
for key value in dict python
Return the key-value pairs in this RDD to the master as a dictionary.
Return a new RDD by applying a function to each element of this RDD.
python sort based on multiple keys
Group the values for each key in the RDD into a single sequence.
how can I sort a dictionary in python according to its values?
how to have multiple values to a key in dict in python
Sorts this RDD, which is assumed to consist of (key, value) pairs
python iterate dictionary key value
Create a data dictionary of 5 states having state name as key and number python 3
New to Communities?
Join the community