LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Data Manipulation in Julia

Kurs anzeigen

Anleitung zur Übung

  • Using combine(), find out the mean of rating, the median of cocoa, and the standard deviation of REF using std.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Compute mean of rating, median of cocoa, and std of REF
____(____, ____ => ____, ____ => ____, ____ => ____)
Code bearbeiten und ausführen