applies a function to all elements of this rdd

Solutions on MaxInterview for applies a function to all elements of this rdd by the best coders in the world

showing results for - "applies a function to all elements of this rdd "
Carsen
05 Jul 2016
1def f(x): print(x)
2sc.parallelize([1, 2, 3, 4, 5]).foreach(f)