I am trying to get an age and thus substracting the today's date from a date in a data frame. So trying to do this:
(df
.assign(dob = lambda x: pd.to_datetime(x.date,format='%Y%m%d'))
.assign(age = lambda x: x.dob - pd.datetime.now())
)
but I get the following error and don't see why
OverflowError: Overflow in int64 addition