python datafra,e calculate the day difference between two datetime code example
Example: python: calculate number of days from today date in a data frame
df[['A','B']] = df[['A','B']].apply(pd.to_datetime) # If conversion required
df['C'] = (df['B'] - df['A']).dt.days