I am trying to create two new column of people's ages and their age groups(5 year intervals) given their date of birth from a data frame. The current data frame For example:
Person Date of Birth
A 1/2/2000
B 3/2/1998
C 4/5/2008
The expected outcome is :
Person Date of Birth Age Age-Group
A 1/2/2000 18 15-20
B 3/2/1990 28 25-30
C 4/5/2008 10 5-10
What is the best way to do this on the most efficient way for a large data set? Thanks