Abschnitt 1. Kapitel 20
single
Challenge: Sorting and Ordering
Swipe um das Menü anzuzeigen
Aufgabe
Wischen, um mit dem Codieren zu beginnen
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 20
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen