【发布时间】:2020-08-12 08:23:30
【问题描述】:
我有一个数据框 df,有 2 列我想一起绘制,天数作为索引:
| col1 | col2 | col3 | ...
2020-01-01 | 1 | 300000 | ...
2020-01-02 | 1000 | 600000 | ...
2020-01-03 | 3000 | 50000 | ...
通过绘制 col1 + col2
df[["col1", "col2"]].plot()
显示从 0 到 1.0 的值,顶部为“1e6”,如本例所示:https://i.stack.imgur.com/tJjgX.png
我想要 y 轴上的完整值范围并且没有科学记数法。如何通过 pandas .plot() 或 matplotlib 做到这一点?
【问题讨论】:
标签: python pandas plot scientific-notation