Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Which of the following code blocks fails to return a DataFrame sorted in reverse alphabetical order based on the column 'division'?
A
storesDF.orderBy("division", ascending – False)
B
storesDF.orderBy(["division"], ascending = [0])
C
storesDF.orderBy(col("division").asc())
D
storesDF.sort("division", ascending – False)
E
storesDF.sort(desc("division"))