DateTime to int in pandas
df['time'] = df['time'].apply(lambda x: x.value)
Sparkling Shrike
df['time'] = df['time'].apply(lambda x: x.value)