Forecasting, Data Science, Python, Data Visualization, Machine Learning.
# Holt's Linear Trend Model model = ExponentialSmoothing(data['Passengers'], trend = 'add') fit = model.fit() forecast = fit.forecast(12) # Plot the data and forecast data['Passengers'].plot(label = 'Observed') forecast.plot(label = 'Holt Forecast', color = 'red') plt.legend() plt.title("Holt's