[ Web Proxy ]
URL:
Viewing: https://spark.apache.org/docs/latest/api/python/reference/api/../api/pyspark.RDD.values.html [Back]  [Original]

pyspark.RDD.values — PySpark 4.2.0 documentation Skip to main content
Search the docs ...:

pyspark.RDD.values#

RDD.values()[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]

Web Proxy Viewer  |  New URL  |  Original Page