Multiple Choices
(Choose 1 answer)
The columns of a DataFrame can be alphabetically sorted on the column name. Which of the following commands is correct?
A. df.sort_index(axis=1, ascending=False).head(3)
B. df.sort_index(axis=1, ascending=True).head(3)
C. df.sort_index(axis=1, descending=True).head(3)
D. df.sort_index(axis=1, descending=False).head(3)