Osio 1. Luku 20
single
Challenge: Sorting and Ordering
Pyyhkäise näyttääksesi valikon
Tehtävä
Pyyhkäise aloittaaksesi koodauksen
Sort a data frame by multiple columns and explain the result.
- The function must return a new data frame sorted first by the
Departmentcolumn in ascending order, and then by theSalarycolumn in ascending order within each department. - The function must not modify the original data frame.
- The function must work for any data frame with at least the columns
DepartmentandSalary.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 20
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme