【发布时间】:2017-12-02 07:44:51
【问题描述】:
这是我试过的代码:
ax = Statements.plot(x='Date', y='mean_Kincaid', legend=True,
title="Fed Statement Kincaid and Sentiment scores over time")
Statements.plot(x='Date', y='mean_Score', ax=ax)
Statements.plot(secondary_y='mean_Kincaid', style='g', ax=ax)
运行时:
ts = Statements.set_index('Date')
ts.mean_Kincaid.plot()
ts.mean_Score.plot(secondary_y=True)
我明白了:
这与我的原始图表有很大不同。这是什么原因造成的,我该如何解决?
【问题讨论】:
标签: python pandas datetime matplotlib