
Ultimate access to all questions.
Which of the following code blocks correctly applies the assessPerformance() function to each row of the DataFrame storesDF?
A
storesDF.collect.foreach(assessPerformance(row))
B
storesDF.collect().apply(assessPerformance)
C
storesDF.collect.apply(row => assessPerformance(row))
D
storesDF.collect.map(assessPerformance(row))
E
storesDF.collect.foreach(row => assessPerformance(row))