Session Ready
Exercise

Sorting by percentage of "yes" votes

Now that you've summarized the dataset by country, you can start examining it and answering interesting questions.

For example, you might be especially interested in the countries that voted "yes" least often, or the ones that voted "yes" most often.

Instructions
100 XP
  • Print the by_country dataset created in the last exercise.
  • Use arrange() to sort the countries in ascending order of percent_yes.
  • Arrange the countries by the same variable, but in descending order.