Skip to content

Instantly share code, notes, and snippets.

@antonia-had
Last active October 9, 2018 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonia-had/b5c714f04ae097907f7a8bef78e22d0f to your computer and use it in GitHub Desktop.
Save antonia-had/b5c714f04ae097907f7a8bef78e22d0f to your computer and use it in GitHub Desktop.
import packages and load data
import numpy as np #Package we'll use for numerical calculations
import matplotlib.pyplot as plt #From matplotlib package we import pyplot for plots
import pandas #Package to data manipulation
import scipy.optimize #Package we'll use to optimize
plt.style.use('seaborn-colorblind') #This is a pyplot style (optional)
'''Load the data into a pandas series with the name wine_sales'''
time_series = pandas.Series.from_csv("wine_sales.csv", header=0)
P=12 #number of seasonal periods in a cycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment