Challenge: The Age of Employees

Learn how to find the difference between two dates with Pandas.

We'll cover the following

Problem statement

The staff contains the start_date and date_of_birth columns. We’re asked to find the age of employees at the time they were hired in years. For instance, if an employee was born in 1991 and started working in 2021, then the answer should be 30.

Get hands-on with 1400+ tech skills courses.