Use the ax.plot method to plot the DataFrame index against the relative_temp column. Use the annotate method to add the

动态 未结 0 99
小小草
小小草 LV1 2023年9月23日 23:40 发表
下面是完整代码: ```python fig, ax = plt.subplots() # Plot the relative temperature data ax.plot(climate_change.index, climate_change["relative_temp"]) # Annotate the date at which temperatures exceeded 1 degree ax.annotate('>1 degree', xy=(pd.Timestamp('2015-10-06'), 1)) plt.show() ```
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复