Given a data frame df, what will be the output of the following statement?

print(df.sort_values(by=[‘Name’], axis=0, ascending=False)

1

The data frame will be sorted by the column ‘Name’ in column-order and in ascending order.

2
The data frame will be sorted by the column ‘Name’ in row-order and in descending order.
3
The data frame will be sorted by the column ‘Name’ in column-order and in descending order.
4

The data frame will be sorted by the column ‘Name’ in row-order and in ascending order.

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation