# convert student ID to list using # flatMap print(dataframe.select('student ID'). rdd.flatMap(lambda x: x).collect())