Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
What DataFrames are
DataFrame columns
DataFrame rows
Filtering rows and columns
Filtering data frames
Sorting rows
29. Ascending or descending order


Well done! By default, rows are sorted in ascending order. If you want to have them sorted in descending order, you need to write:

hospitals = hospitals.sort_values(by='Hospital overall rating', ascending=0)

In pandas, ascending=0 means "sort in descending order".


Now, which country has the greatest area in the EU? Sort the rows in eu_states by the Area column in descending order.

Stuck? Here's a hint!

Use ascending=0 in the parentheses.