What shall you use?
Do you think you know when to use which function? Let's put your knowledge to a test!
The wages dataset, and the DataFrames and Statistics packages have been loaded for you.
Bu egzersiz
Data Manipulation in Julia
kursunun bir parçasıdırEgzersiz talimatları
- Mutate
wagesby adding a column containing the median ofCPI_average. - Select the new column, renaming it as
med_CPI, theyearcolumn, and column containing the sum offederal_min_wagecolumn, changing the DataFrame in place. - Use the
maximumfunction onwagesin such a way that the result has only one line and one column, containing the maximum of theyearcolumn.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Add column containing the median of CPI_average
____
# Select CPI_average_median as med_CPI, year, federal_min_wage column
____
# Create a 1x1 DataFrame containing the maximum of the year column
____