从熊猫中的datetime对象提取小时
当我使用dt.hour
在Pandas中提取23.35小时时,它会返回0。但是我想获得24。如何做?
When I extract hours from 23.35 using dt.hour
in pandas it returns 0. But i want to get 24. How to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设此输入:
确实是一个小时
,如果您
round
:可以做什么以转换圆形小时+分钟
Assuming this input:
hours
An indeed, if you
round
:what you can do it to convert rounded hour+minutes