เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Data Manipulation in Julia

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Mutate wages by adding a column containing the median of CPI_average.
  • Select the new column, renaming it as med_CPI, the year column, and column containing the sum of federal_min_wage column, changing the DataFrame in place.
  • Use the maximum function on wages in such a way that the result has only one line and one column, containing the maximum of the year column.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# 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
____
แก้ไขและรันโค้ด