Answers for "spark basics medium"

0

spark basics medium

even_rdd = num_rdd.filter(lambda x : x % 2 == 0)
Posted by: Guest on July-06-2021
0

spark basics medium

double_rdd = num_rdd.map(lambda x : x * 2)
Posted by: Guest on July-06-2021
0

spark basics medium

flat_rdd = num_rdd.flatMap(lambda x : range(1,x))
Posted by: Guest on July-06-2021
0

spark basics medium

num = [1,2,3,4,5]num_rdd = sc.parallelize(num)
Posted by: Guest on July-06-2021

Browse Popular Code Answers by Language