Answers for "Distribute a local Python collection to form an RDD"

0

Distribute a local Python collection to form an RDD

# Distribute a local Python collection to form an RDD

>>> sc.parallelize([0, 2, 3, 4, 6], 5).glom().collect()
[[0], [2], [3], [4], [6]]
>>> sc.parallelize(xrange(0, 6, 2), 5).glom().collect()
[[], [0], [], [2], [4]]
Posted by: Guest on March-11-2020

Code answers related to "Distribute a local Python collection to form an RDD"

Python Answers by Framework

Browse Popular Code Answers by Language