RDD.
distinct
Return a new RDD containing the distinct elements in this RDD.
Examples
>>> sorted(sc.parallelize([1, 1, 2, 3]).distinct().collect()) [1, 2, 3]
previous
pyspark.RDD.countByValue
next
pyspark.RDD.filter