pyspark.RDD.values

RDD.values() → pyspark.rdd.RDD[V]

Return an RDD with the values of each tuple.

Examples

>>> m = sc.parallelize([(1, 2), (3, 4)]).values()
>>> m.collect()
[2, 4]