我正在尝试绘制线图。数据包含一段时间内满足企业的请求。
代码:
for i in Test['Department'].unique():
plt.figure(figsize=(20,10))
ax = sns.lineplot(x='Year', y='TotalDays', data=df)
ax.set_title('Average Totaldays by the office:{}'.format(i))
我还如何绘制平均值+ 1 SD和-1 SD的范围以比较趋势?