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