【发布时间】:2019-01-05 09:04:54
【问题描述】:
我需要时间序列方面的帮助。我有这个内置于 pandas 的数据框:
date bitcoin tether
91 2017-11-01 0.0444 0.0001
90 2017-11-02 0.0426 0.0000
89 2017-11-03 0.0181 0.0000
88 2017-11-04 0.0296 0.0000
87 2017-11-05 0.0035 0.0000
86 2017-11-06 -0.0582 0.0000
85 2017-11-07 0.0206 0.0000
84 2017-11-08 0.0481 0.0100
我想在同一个图中同时绘制系绳和比特币的运动,时间应该在 x 轴上可视化。 我希望比特币和 Tether 将按照自己的大小进行缩放。 我想在图片中有这样的东西(用matplotlib创建),但时间在轴上。我不关心包,只关心结果.....我使用的是 Python 2.7。
Tether vs 比特币 Var%
【问题讨论】:
-
pandas visualization docs 和matplotlib examples page 有许多不同的代码示例,可以轻松适应自己的需求。
标签: python python-2.7 pandas matplotlib