Sectie 1. Hoofdstuk 20
single
Challenge: Sorting and Ordering
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 20
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.