How to subtract 5 minutes from pandas Timestamp
In our previous post we showed how to create a pandas Timestamp
representing the current point in time:
pd.Timestamp('now')
You can subtract 5 minutes from that timestamp by using Timedelta(5, 'minutes')
:
pd.Timestamp('now') - pd.Timedelta(5, 'minutes')
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow