QuestionQ59

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following code blocks does not return a DataFrame alphabetically sorted by the division column?

Explanation

col("division").desc() explicitly creates a descending sort expression. The other forms sort division in ascending order, either by default or through an explicit ascending expression. PySpark DataFrame.sort documentation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!