Advertisements
Advertisements
Question
Can you sort a DataFrame with respect to multiple columns?
Very Short Answer
Advertisements
Solution
Yes, a DataFrame can be sorted with respect to multiple columns by using the sort_values() function and specifying the column names in a list.
shaalaa.com
Is there an error in this question or solution?
