BaşlayınÜcretsiz Başlayın

Chocolate location vs. rating

Are chocolates from certain countries better than those from others? And what about different companies? You can use grouped summary statistics to find out!

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

Bu egzersiz

Data Manipulation in Julia

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Group the chocolates DataFrame by company_location and company, saving the result as choc_groups.
  • Compute the minimum, median, and maximum of rating for each group, renaming the columns as min_rating, med_rating, and max_rating; save the result as choc_groups_stats.
  • Sort choc_groups_stats by the med_rating column in reverse order.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create choc_groups
____

# Calculate minimum, median, maximum of rating, rename the new columns and save the result
____ 

# Sort choc_groups_stats by med_rating in reverse
____
Kodu Düzenle ve Çalıştır