pyspark.RDD.values

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

Return an RDD with the values of each tuple.

New in version 0.7.0.

Returns
RDD

a RDD only containing the values

See also

RDD.keys()

Examples

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