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.
本练习是课程的一部分
Data Manipulation in Julia
练习说明
- Group the
chocolatesDataFrame bycompany_locationandcompany, saving the result aschoc_groups. - Compute the
minimum,median, andmaximumofratingfor each group, renaming the columns asmin_rating,med_rating, andmax_rating; save the result aschoc_groups_stats. - Sort
choc_groups_statsby themed_ratingcolumn in reverse order.
交互式实操练习
通过完成这段示例代码来试试这个练习。
# 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
____