Combining chocolates
While the combine() function shines the most when applied to different groups, you can still use it on normal DataFrames. Let's see how to use different functions on different columns!
The DataFrames and Statistics packages, and the chocolates dataset, have been loaded for you.
本练习是课程的一部分
Data Manipulation in Julia
练习说明
- Using
combine(), find out the mean ofrating, the median ofcocoa, and the standard deviation ofREFusingstd.
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Compute mean of rating, median of cocoa, and std of REF
____(____, ____ => ____, ____ => ____, ____ => ____)