Answers for "Return an RDD created by coalescing all elements within each partition into a list."

0

Return an RDD created by coalescing all elements within each partition into a list.

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

Code answers related to "Return an RDD created by coalescing all elements within each partition into a list."

Python Answers by Framework

Browse Popular Code Answers by Language