Python 中的时间序列可达微秒
我想用Python 处理时间序列。
有人建议我使用 scikit.timeseries 但我需要处理最多微秒据我所知,最后一个处理时间长达几毫秒。
您知道其他图书馆能够做到这一点吗?在某些时候,我需要合并在不同时间采样的两个时间序列,并且我希望尽可能避免从头开始重写此类功能或任何新类。
I would like to handle time series in Python.
It has been suggested to me that I use scikit.timeseries but I need to handle up to microseconds and this last, as far as I know, handles up to milliseconds.
Do you know any other library able to do that? At some point I need to merge 2 time series sampled at different times, and I would like to avoid rewriting such features or any new classes from scratch whenever it is possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
datetime
模块处理微秒:使用
timedelta
对象对datetime
执行算术运算会返回一个新的datetime
对象:对
datetime
对象执行算术运算会返回timedelta
对象。The
datetime
module handles microseconds:Performing arithmetic operations against a
datetime
using atimedelta
object returns a newdatetime
object:Performing arithmetic operations against
datetime
objects returns atimedelta
object.了解 RedBlackPy。
您可以阅读文章 带有代码示例。
我认为 RedBlackPy.Series 就是您想要的(它是为了方便处理时间序列而构建的)。 RedBlackPy 现在可用于 macOS 和 Linux。
Read about RedBlackPy.
You can read article with code examples.
I think that RedBlackPy.Series is what you want (it is built for convenient work with time series). RedBlackPy is available for macosx and linux now.