C. It is the only option "not returning" the dataframe in descending(reverse) order.
All other formats are returning the descending order.
In Oprtion E, if we import the desc function,. it will not throw error and will return the dataframe in descending order.
E. storesDF.sort(desc("division"))
Option E correctly uses the desc function to specify the descending order for sorting. Thank you for providing additional information and clarification.
Option A and D is giving errors. ~ cannot be used in ascending. Right way is to use ascending=False. Most relevant option is C which is sorting the data in ascending order , Option A, D have some typos it should be = instead of ~.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
58470e1
1 week, 1 day agojds0
4 months agodbdantas
7 months, 2 weeks agoazurearch
8 months, 3 weeks agomahmoud_salah30
10 months, 4 weeks agovishnuas
11 months, 2 weeks agooutwalker
1 year agosingh100
1 year, 3 months agosingh100
1 year, 3 months agozozoshanky
1 year, 3 months agoItsAB
1 year, 4 months agolakhan0309
1 year, 4 months ago