This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
不幸的是我还不能发表评论,否则我会发表评论的。
看看这个SO问题,你似乎犯了一个拼写错误,需要
df['time'] = df['time'].dt.floor('T')
其中区别是 dt 而不是 df 介于两者之间点。I unfortunately can't comment yet, otherwise I would've commented.
Looking at this SO question it seems you have made a typo and need
df['time'] = df['time'].dt.floor('T')
where the difference is the dt instead of the df in between the dots.