Answers for "Applies a function to all elements of this RDD."

0

Applies a function to all elements of this RDD.

def f(x): print(x)
sc.parallelize([1, 2, 3, 4, 5]).foreach(f)
Posted by: Guest on March-11-2020

Code answers related to "Applies a function to all elements of this RDD."

Python Answers by Framework

Browse Popular Code Answers by Language