QuestionQ102
VerifiedDeveloping Apache Spark™ DataFrame/DataSet API ApplicationsA data engineer is working with the DataFrame df:

The data engineer wants the Name with the highest count to appear first at the top, followed by the Name with the next-highest count, and so on.
Which code fragment should the engineer use to sort the data in the Name and count columns?
Community Discussion