Kom igångKom igång gratis

Penguin transformations

Let's look at the penguins dataset! Your colleague would like your help in creating new columns in the DataFrame, containing the median value for some of the measurements. As they want to include all data from the original dataset, the transform() function looks like the best candidate! Can you help?

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

Den här övningen är en del av kursen

Data Manipulation in Julia

Visa kurs

Övningsinstruktioner

  • Use the transform() function to create columns containing the median of the flipper_length_mm and body_mass_g columns.

Interaktiv övning med praktiskt arbete

Testa den här övningen genom att slutföra den här exempelkoden.

# Add new columns containing the median values for flipper_length_mm and body_mass_g
____(____, ____ ____ ____)
Redigera och kör kod