如何在特定日期向此圖表添加垂直線標記?Week end是日期列。
fig, ax = plt.subplots(figsize=(20,9))
thirteen.plot.line(x='Week end', y='OFF', color='crimson', ax=ax)
thirteen.plot.line(x='Week end', y='ON', color='blue', ax=ax)
ax.set_ylim(bottom=0)
plt.show()

uj5u.com熱心網友回復:
首先確保日期列Week end已被轉換
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/440752.html
標籤:Python 熊猫 约会时间 matplotlib
