
Ultimate access to all questions.
Which of the following code blocks applies the assessPerformance() function to each row of the DataFrame storesDF?
A
[assessPerformance(row) for row in storesDF.take(3)]
B
[assessPerformance() for row in storesDF]
C
storesDF.collect().apply(lambda: assessPerformance)
D
[assessPerformance(row) for row in storesDF.collect()]
E
[assessPerformance(row) for row in storesDF]