QuestionQ241
VerifiedDeveloping Apache Spark™ DataFrame/DataSet API ApplicationsA DataFrame df contains the columns name, age, and salary. The developer needs to sort the DataFrame by age in ascending order and by salary in descending order.
Which code snippet satisfies the developer's requirement?
Community Discussion