I have this timestamp
2023-07-12 21:12:21.940000
After converting it using :
df_snowflake['last_activity']=df_snowflake['last_activity'].dt.strftime('%Y-%m-%d %H:%M:%S.%f')
I want to reduce the milliseconds precision and get the next datetime :
2023-07-12 21:12:21.940