pyspark.RDD.values

RDD.values()[source]

Return an RDD with the values of each tuple.

Examples

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