All our Data Science projects include bite-sized activities to test your knowledge and practice in an environment with constant feedback.
All our activities include solutions with explanations on how they work and why we chose them.
Create a new series called body_mass_g_plus_100 by adding a constant value of 100 to the body_mass_g series.
Subtract the culmen_length_mm series from the flipper_length_mm series and assign the result to a new series called length_difference.
Multiply the culmen_depth_mm series by 2 and assign the result to a new series called double_culmen_depth_mm.
Create a new series called flipper_length_mm_squared by raising the flipper_length_mm series to the power of 2.
Find the mean of the culmen_length_mm series and subtract it from each value in the series. Assign the result to a new series called culmen_length_mm_mean_centered.
Create a new series called species_and_gender by concatenating the species and gender series, separated by a hyphen (-).
Add culmen_length_mm and culmen_depth_mm together and assign the result to a new variable called culmen_length_plus_depth_mm.
Create a new series called culmen_length_mm_sorted by sorting culmen_length_mm in descending order.
Find the ratio of each penguin's flipper length to its culmen length and assign the result to a new variable called length_ratio.