QuestionQ19

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

Which of the following code blocks returns a DataFrame sorted alphabetically by the division column?

Explanation

PySpark DataFrame.sort returns a DataFrame sorted by the specified column, and its ascending parameter defaults to True. Sorting the string column division this way produces alphabetical order.

Learn more

Community Discussion

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