Employees Hired After the Changeover Date
Kestrel Labs replaced its week-long induction with a buddy scheme, and the changeover day has been moved twice already as the rollout was re-planned. Everyone who started before the changeover day, and everyone who started on the day itself, went through the old induction and does not need a buddy. Everyone who started after it does, and People Ops needs their names to hand to the mentors, in alphabetical order, because the list goes straight into a mail merge.
Whichever day is picked, somebody may turn out to have started on it exactly, and whether that person appears is the difference between a correct list and one that sends a mentor to somebody who does not need one.
One wrinkle. hire_date is not a date object in this export — it is text, the YYYY-MM-DD strings that came out of the payroll system exactly as payroll wrote them.
employees_df — one row per employee. hire_date is the day they started. manager is the name of the person they report to, or None where nobody is recorded.
| id | name | department | salary | hire_date | manager |
|---|---|---|---|---|---|
| 1 | Ava Chen | Engineering | 145000 | 2021-03-14 | None |
| 2 | Ben Ortiz | Engineering | 118000 | 2022-06-01 | Ava Chen |
| 3 | Cara Novak | Engineering | 121000 | 2023-01-10 | Ava Chen |
| 4 | Deshawn Lee | Sales | 95000 | 2020-09-23 | None |
| 5 | Elin Kask | Sales | 88000 | 2022-11-05 | Deshawn Lee |
| 6 | Farid Amiri | Marketing | 76000 | 2023-04-18 | None |
| 7 | Grace Kim | Data | 132000 | 2021-07-30 | None |
| 8 | Hugo Silva | Data | 110000 | 2023-02-14 | Grace Kim |
| 9 | Ines Duarte | Data | 104000 | 2023-08-01 | Grace Kim |
| 10 | Jonas Weber | Sales | 91000 | 2021-12-19 | Deshawn Lee |
Input
The DataFrame above is already built for you — the employee rows are not read from input. What does arrive is a single line holding the changeover date, written the same YYYY-MM-DD way the export writes its dates.
Task: Print a sorted Python list of the names of every employee hired after the changeover date that arrives. Somebody hired on that date itself does not count.
Example: if two people qualified, the output would look like ['Ada Bloom', 'Zeno Marsh'] — names only, alphabetical.
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in