python pandas timestamps greater than 5 days between two dates 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