Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Which of the following code blocks returns a DataFrame sorted in alphabetical order by the column division?
division
A
storesDF.sort("division")
B
storesDF.orderBy(desc("division"))
C
storesDF.orderBy(col("division").desc())
D
storesDF.orderBy("division", ascending - true)
E
storesDF.sort(desc("division"))