I change the field of 'date' to datetime in order to calculate the difference between their cells and 'today'
df['date']=pd.to_datetime(df['date'], format='%Y-%d-%m %H:%M:%S',errors='ignore')
so i can try below code for several random indexes such as below:
pd.Timestamp.now().normalize() - df['date'][1003]
Timedelta('2598 days 00:00:00')
as you see it works.
but when i run this code i got error:
df['Diff']=df['date'].agg(lambda x:pd.Timestamp.now().normalize()-x)
TypeError: unsupported operand type(s) for -: 'Timestamp' and 'str'