开始使用免费开始使用

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.

本练习是课程的一部分

Data Manipulation in Julia

查看课程

练习说明

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

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Add new columns containing the median values for flipper_length_mm and body_mass_g
____(____, ____ ____ ____)
编辑并运行代码