Answers for "Find the maximum item in this RDD."

0

Find the maximum item in this RDD.

rdd = sc.parallelize([1.0, 5.0, 43.0, 10.0])
rdd.max()
# 43.0
rdd.max(key=str)
# 5.0
Posted by: Guest on March-11-2020

Code answers related to "Find the maximum item in this RDD."

Python Answers by Framework

Browse Popular Code Answers by Language