PyArrow strptime 纳秒
有想法通过 pyarrow 包方法解析像 10:12:12.123456789 这样的字符串时间吗?
br
尝试过类似的事情但没有成功 pc.strptime(pa.array(["10:12:00.123"]), format="%H:%M:%S.%f", unit="ms")
回报 ArrowInvalid:无法将字符串:“10:12:00.123”解析为时间戳[ms]类型的标量
Any idea to parse string time like 10:12:12.123456789 through pyarrow package methods ?
br
tried things like this without successpc.strptime(pa.array(["10:12:00.123"]), format="%H:%M:%S.%f", unit="ms")
returnsArrowInvalid: Failed to parse string: '10:12:00.123' as a scalar of type timestamp[ms]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
pyarrow 尚不支持解析秒的小数部分。计划提供支持 (https://issues.apache.org/jira/browse/ARROW- 15883)并且解析器的其他部分正在进行中。我猜测这将包含在 8.0.0 或 9.0.0 中,但这只是一个猜测。
pyarrow doesn't support parsing of fractional seconds yet. Support is planned (https://issues.apache.org/jira/browse/ARROW-15883) and there is ongoing work on other parts of the parser. I'd guess this will be included in 8.0.0 or 9.0.0 but it's just a guess.