# Initialize an Exponential Smoothing model model = ExponentialSmoothing() # Fit the model to the series model.fit(series) # Forecast the next 5 steps forecast = model.predict(5) # Visualize the results series.plot(label='Actual') forecast.plot(label='Forecast', color='red')