Dec-28-2020, 08:35 PM
Hi everyone, I have the code below that first creates a column with today's date (works) then I subtract an existing column but I get a TypeError. I ran the Dtype function and found that the excl.test column is being returned as an object (string), how can I convert this field into a date? Note, the excl.Date column is formatted as a date yyy-mm-dd.
from datetime import date excl['test'] = (today) print(excl.test - excl.Date)