Exercise

Selecting patterns

Switzerland, Belgium, Ecuador, … these countries and many more are associated with the best chocolate. But does our dataset agree? Let's look at the columns containing information regarding reviews and location!

The DataFrames package and the chocolates dataset have been loaded for you.

Instructions

100 XP
  • Select columns starting with the letter r and columns ending with location and save the new DataFrame as reviews_locations.
  • Sort reviews_locations in place using the rating column in descending order.