Sektion 1. Kapitel 20
single
Challenge: Sorting and Ordering
Stryg for at vise menuen
Opgave
Stryg for at begynde at kode
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 20
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat