如何在特定日期向此图表添加垂直线标记?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()
Run Code Online (Sandbox Code Playgroud)