I have a pandas dataframe looking like this:
Name start end A 2000-01-10 1970-04-29
I want to add a new column providing the
You can try by creating a new column with years in this way:
df['diff_year'] = df['diff'] / np.timedelta64(1, 'Y')