Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flatmap in python


rdd2=rdd.flatMap(lambda x: x.split(" "))
for element in rdd2.collect():
    print(element)
Source by sparkbyexamples.com #
 
PREVIOUS NEXT
Tagged: #flatmap #python
ADD COMMENT
Topic
Name
1+2 =