I read several topics and could not find a solution. I need to find out the age of the person and I currently have the following.
Column func ['dtNasc'], type str Variable dateToCompare, type datetime.datetime
I know I need to do func ['dtNasc'] - dateToCompare, to generate a result of the timedelta type, and only then can do:
func['idade'] = [[func['dtNasc'] - dateToCompare]/365.25]
How do I convert the func ['dtNasc'] column to datetime?