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

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

pyspark.RDD.min#

RDD.min(key=None)[source]#

Find the minimum item in this RDD.

New in version 1.0.0.

Parameters
keyfunction, optional

A function used to generate key for comparing

Returns
T

the minimum item

See also

RDD.max()

Examples

>>> rdd = sc.parallelize([2.0, 5.0, 43.0, 10.0])
>>> rdd.min()
2.0
>>> rdd.min(key=str)
10.0

Web Proxy Viewer  |  New URL  |  Original Page