I have a dataframe df with a DOB (date of birth) that is in the format of "Year-Month-Day (1994-01-01)"
and the DOB variable is an object.
I need to assign age to each person using this DOB variable. I noticed I need to use datetime
to find age, and I need to convert the format to "Year/Month/Day (1994/01/01)"
first.
I wonder if someone can help.
Thanks!