Answers for "Return a new RDD containing the distinct elements in this RDD."

0

Return a new RDD containing the distinct elements in this RDD.

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

Code answers related to "Return a new RDD containing the distinct elements in this RDD."

Python Answers by Framework

Browse Popular Code Answers by Language