Date Day_Perc_Change No. of Trades
2017-05-15 0.000000 40593
2017-05-16 -0.019184 22027
2017-05-17 -0.008550 15709
2017-05-18 -0.017699 47159
2017-05-19 -0.021748 85921
我在茎图中可视化了“Day_Perc_Change”,在折线图中可视化了“交易次数”。但是现在我想通过将它们相互叠加来比较这两个图。我如何将其可视化?
x = df["Date"]
y = df["Day_Perc_Change"]
plt.stem(x, y, bottom=0)
plt.show()
df.plot(x="Date", y="No. of Trades", figsize=(10,8))
我想将这两者叠加起来进行比较……有没有办法做到这一点?




