如何从 pandas Timestamp 中减去 5 分钟
在我们的上一篇文章中,我们展示了如何创建表示当前时间点的 pandas Timestamp:
example.py
pd.Timestamp('now')你可以使用 Timedelta(5, 'minutes') 从该时间戳中减去 5 分钟:
example.py
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