Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Dataframe to list pyspark

# convert student ID to list using
# flatMap
print(dataframe.select('student ID').
      rdd.flatMap(lambda x: x).collect())
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Dataframe #list #pyspark
ADD COMMENT
Topic
Name
2+5 =