I have a *.csv file with the following format:
ID Date (YYYY-MM-DD)
I need to calculate the age of each person, but I can´t find a way. I tried to read the column as date using
parse_dates=['date']
but it didn´t work.
Then, I tried to add a column with the actual date and substracting both but I got a column type error and I wasn´t able con parse both to numeric.
I tried pd.to_numeric(...,errors='coerce')
but when I apply the dtype function it doesn´t return a numeric.
I´m frustrated as I´m starting with Pandas and it´s a very easy task to do in the softwares I´m used to but I can´t figure out how to do here. Any help would be really appreciated.