I have the following code that is showing the column name for the first plot, rather than the label name. Any guidance welcome on how to fix this.
sales_pred = results2.get_prediction(start=pd.to_datetime('2011-10-28'), dynamic=False)
pred_ci = sales_pred.conf_int()
ax = pivot_sales['2010':].plot(label='Actual Sales')
sales_pred.predicted_mean.plot(ax=ax, label='Sales Prediction', alpha=.7, figsize=(14, 4))
ax.fill_between(pred_ci.index,
pred_ci.iloc[:, 0],
pred_ci.iloc[:, 1], color='k', alpha=.2)
ax.set_xlabel('Date')
ax.set_ylabel('Weekly Sales')
plt.legend()
plt.show()
The legend should show Actual Sales, rather than Weekly_Sales
.