Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Which of the following code blocks applies the assessPerformance() function to each row of the DataFrame storesDF?
assessPerformance()
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]