Forecasting, Data Science, Python, Data Visualization, Machine Learning.
Exponential Smoothing: Python from statsmodels.tsa.holtwinters import SimpleExpSmoothing # Simple Exponential Smoothing model = SimpleExpSmoothing(data['Passengers']) fit = model.fit() forecast = fit.forecast(12) # Plot the data and forecast data['Passengers'].plot(label = 'Observed')