เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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 of rating, the median of cocoa, and the standard deviation of REF using std.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Compute mean of rating, median of cocoa, and std of REF
____(____, ____ => ____, ____ => ____, ____ => ____)
แก้ไขและรันโค้ด