\n",
- "\n",
"
\n",
" \n",
@@ -1055,23 +5407,23 @@
" \n",
" \n",
" 2015-01-01 | \n",
- " 121.006984 | \n",
+ " 120.968880 | \n",
"
\n",
" \n",
" 2015-02-01 | \n",
- " 110.058298 | \n",
+ " 109.868948 | \n",
"
\n",
" \n",
" 2015-03-01 | \n",
- " 100.662141 | \n",
+ " 100.402141 | \n",
"
\n",
" \n",
" 2015-04-01 | \n",
- " 90.670428 | \n",
+ " 90.585794 | \n",
"
\n",
" \n",
" 2015-05-01 | \n",
- " 92.161643 | \n",
+ " 92.183094 | \n",
"
\n",
" \n",
"
\n",
@@ -1080,14 +5432,14 @@
"text/plain": [
" Prediction\n",
"DATE \n",
- "2015-01-01 121.006984\n",
- "2015-02-01 110.058298\n",
- "2015-03-01 100.662141\n",
- "2015-04-01 90.670428\n",
- "2015-05-01 92.161643"
+ "2015-01-01 120.968880\n",
+ "2015-02-01 109.868948\n",
+ "2015-03-01 100.402141\n",
+ "2015-04-01 90.585794\n",
+ "2015-05-01 92.183094"
]
},
- "execution_count": 44,
+ "execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
@@ -1098,25 +5450,25 @@
},
{
"cell_type": "code",
- "execution_count": 45,
+ "execution_count": 29,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
\n",
- "\n",
"
\n",
" \n",
@@ -1164,7 +5516,7 @@
"2015-05-01 91.0930"
]
},
- "execution_count": 45,
+ "execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
@@ -1175,77 +5527,1941 @@
},
{
"cell_type": "code",
- "execution_count": 46,
+ "execution_count": 30,
"metadata": {},
"outputs": [
{
"data": {
+ "application/vnd.plotly.v1+json": {
+ "data": [
+ {
+ "line": {
+ "color": "rgba(255, 153, 51, 1.0)",
+ "dash": "solid",
+ "shape": "linear",
+ "width": 1.3
+ },
+ "mode": "lines",
+ "name": "Energy Production",
+ "text": "",
+ "type": "scatter",
+ "uid": "7ac3af3a-dd42-11e8-90d2-731cf42c8884",
+ "x": [
+ "2015-01-01",
+ "2015-02-01",
+ "2015-03-01",
+ "2015-04-01",
+ "2015-05-01",
+ "2015-06-01",
+ "2015-07-01",
+ "2015-08-01",
+ "2015-09-01",
+ "2015-10-01",
+ "2015-11-01",
+ "2015-12-01",
+ "2016-01-01",
+ "2016-02-01",
+ "2016-03-01",
+ "2016-04-01",
+ "2016-05-01",
+ "2016-06-01",
+ "2016-07-01",
+ "2016-08-01",
+ "2016-09-01",
+ "2016-10-01",
+ "2016-11-01",
+ "2016-12-01",
+ "2017-01-01",
+ "2017-02-01",
+ "2017-03-01",
+ "2017-04-01",
+ "2017-05-01",
+ "2017-06-01",
+ "2017-07-01",
+ "2017-08-01",
+ "2017-09-01",
+ "2017-10-01",
+ "2017-11-01",
+ "2017-12-01",
+ "2018-01-01"
+ ],
+ "y": [
+ 120.2696,
+ 116.3788,
+ 104.4706,
+ 89.7461,
+ 91.093,
+ 102.6495,
+ 111.6354,
+ 110.5925,
+ 101.9204,
+ 91.5959,
+ 93.0628,
+ 103.2203,
+ 117.0837,
+ 106.6688,
+ 95.3548,
+ 89.3254,
+ 90.7369,
+ 104.0375,
+ 114.5397,
+ 115.5159,
+ 102.7637,
+ 91.4867,
+ 92.89,
+ 112.7694,
+ 114.8505,
+ 99.4901,
+ 101.0396,
+ 88.353,
+ 92.0805,
+ 102.1532,
+ 112.1538,
+ 108.9312,
+ 98.6154,
+ 93.6137,
+ 97.3359,
+ 114.7212,
+ 129.4048
+ ]
+ },
+ {
+ "line": {
+ "color": "rgba(55, 128, 191, 1.0)",
+ "dash": "solid",
+ "shape": "linear",
+ "width": 1.3
+ },
+ "mode": "lines",
+ "name": "Prediction",
+ "text": "",
+ "type": "scatter",
+ "uid": "7ac3b1d8-dd42-11e8-90d2-731cf42c8884",
+ "x": [
+ "2015-01-01",
+ "2015-02-01",
+ "2015-03-01",
+ "2015-04-01",
+ "2015-05-01",
+ "2015-06-01",
+ "2015-07-01",
+ "2015-08-01",
+ "2015-09-01",
+ "2015-10-01",
+ "2015-11-01",
+ "2015-12-01",
+ "2016-01-01",
+ "2016-02-01",
+ "2016-03-01",
+ "2016-04-01",
+ "2016-05-01",
+ "2016-06-01",
+ "2016-07-01",
+ "2016-08-01",
+ "2016-09-01",
+ "2016-10-01",
+ "2016-11-01",
+ "2016-12-01",
+ "2017-01-01",
+ "2017-02-01",
+ "2017-03-01",
+ "2017-04-01",
+ "2017-05-01",
+ "2017-06-01",
+ "2017-07-01",
+ "2017-08-01",
+ "2017-09-01",
+ "2017-10-01",
+ "2017-11-01",
+ "2017-12-01",
+ "2018-01-01"
+ ],
+ "y": [
+ 120.96887958210054,
+ 109.86894842219517,
+ 100.40214074448538,
+ 90.58579401119373,
+ 92.18309427053822,
+ 103.27339949889165,
+ 112.94929080171991,
+ 112.21561494614397,
+ 100.96895074933407,
+ 91.94468210293627,
+ 95.772920186207,
+ 111.23777428783035,
+ 120.36178748510943,
+ 110.93821567666191,
+ 102.0054389071919,
+ 90.51827932727072,
+ 92.19307772413921,
+ 102.84332550354299,
+ 112.0890395914807,
+ 110.97099115628905,
+ 100.77485186159268,
+ 92.04009422717213,
+ 96.27309179270213,
+ 109.576296184453,
+ 119.90316977096785,
+ 110.99147011491104,
+ 101.57663659952316,
+ 90.2634581409609,
+ 91.85280789248604,
+ 102.86519884287623,
+ 112.12271640983474,
+ 111.28124902045212,
+ 101.12252718053162,
+ 91.90083966033748,
+ 95.65177024607117,
+ 109.20122110102453,
+ 119.79168346964609
+ ]
+ }
+ ],
+ "layout": {
+ "legend": {
+ "bgcolor": "#F5F6F9",
+ "font": {
+ "color": "#4D5663"
+ }
+ },
+ "paper_bgcolor": "#F5F6F9",
+ "plot_bgcolor": "#F5F6F9",
+ "titlefont": {
+ "color": "#4D5663"
+ },
+ "xaxis": {
+ "gridcolor": "#E1E5ED",
+ "showgrid": true,
+ "tickfont": {
+ "color": "#4D5663"
+ },
+ "title": "",
+ "titlefont": {
+ "color": "#4D5663"
+ },
+ "zerolinecolor": "#E1E5ED"
+ },
+ "yaxis": {
+ "gridcolor": "#E1E5ED",
+ "showgrid": true,
+ "tickfont": {
+ "color": "#4D5663"
+ },
+ "title": "",
+ "titlefont": {
+ "color": "#4D5663"
+ },
+ "zerolinecolor": "#E1E5ED"
+ }
+ }
+ },
"text/html": [
- ""
+ ""
],
- "text/plain": [
- ""
+ "text/vnd.plotly.v1+html": [
+ ""
]
},
- "execution_count": 46,
"metadata": {},
- "output_type": "execute_result"
+ "output_type": "display_data"
}
],
"source": [
- "pd.concat([test,future_forecast],axis=1).iplot()"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 47,
- "metadata": {
- "collapsed": true
- },
- "outputs": [],
- "source": [
- "future_forecast2 = future_forcast"
+ "iplot(pd.concat([test,future_forecast],axis=1).iplot(asFigure=True))"
]
},
{
"cell_type": "code",
- "execution_count": 48,
+ "execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
+ "application/vnd.plotly.v1+json": {
+ "data": [
+ {
+ "line": {
+ "color": "rgba(255, 153, 51, 1.0)",
+ "dash": "solid",
+ "shape": "linear",
+ "width": 1.3
+ },
+ "mode": "lines",
+ "name": "Energy Production",
+ "text": "",
+ "type": "scatter",
+ "uid": "7acfd0b2-dd42-11e8-90d2-731cf42c8884",
+ "x": [
+ "1985-01-01",
+ "1985-02-01",
+ "1985-03-01",
+ "1985-04-01",
+ "1985-05-01",
+ "1985-06-01",
+ "1985-07-01",
+ "1985-08-01",
+ "1985-09-01",
+ "1985-10-01",
+ "1985-11-01",
+ "1985-12-01",
+ "1986-01-01",
+ "1986-02-01",
+ "1986-03-01",
+ "1986-04-01",
+ "1986-05-01",
+ "1986-06-01",
+ "1986-07-01",
+ "1986-08-01",
+ "1986-09-01",
+ "1986-10-01",
+ "1986-11-01",
+ "1986-12-01",
+ "1987-01-01",
+ "1987-02-01",
+ "1987-03-01",
+ "1987-04-01",
+ "1987-05-01",
+ "1987-06-01",
+ "1987-07-01",
+ "1987-08-01",
+ "1987-09-01",
+ "1987-10-01",
+ "1987-11-01",
+ "1987-12-01",
+ "1988-01-01",
+ "1988-02-01",
+ "1988-03-01",
+ "1988-04-01",
+ "1988-05-01",
+ "1988-06-01",
+ "1988-07-01",
+ "1988-08-01",
+ "1988-09-01",
+ "1988-10-01",
+ "1988-11-01",
+ "1988-12-01",
+ "1989-01-01",
+ "1989-02-01",
+ "1989-03-01",
+ "1989-04-01",
+ "1989-05-01",
+ "1989-06-01",
+ "1989-07-01",
+ "1989-08-01",
+ "1989-09-01",
+ "1989-10-01",
+ "1989-11-01",
+ "1989-12-01",
+ "1990-01-01",
+ "1990-02-01",
+ "1990-03-01",
+ "1990-04-01",
+ "1990-05-01",
+ "1990-06-01",
+ "1990-07-01",
+ "1990-08-01",
+ "1990-09-01",
+ "1990-10-01",
+ "1990-11-01",
+ "1990-12-01",
+ "1991-01-01",
+ "1991-02-01",
+ "1991-03-01",
+ "1991-04-01",
+ "1991-05-01",
+ "1991-06-01",
+ "1991-07-01",
+ "1991-08-01",
+ "1991-09-01",
+ "1991-10-01",
+ "1991-11-01",
+ "1991-12-01",
+ "1992-01-01",
+ "1992-02-01",
+ "1992-03-01",
+ "1992-04-01",
+ "1992-05-01",
+ "1992-06-01",
+ "1992-07-01",
+ "1992-08-01",
+ "1992-09-01",
+ "1992-10-01",
+ "1992-11-01",
+ "1992-12-01",
+ "1993-01-01",
+ "1993-02-01",
+ "1993-03-01",
+ "1993-04-01",
+ "1993-05-01",
+ "1993-06-01",
+ "1993-07-01",
+ "1993-08-01",
+ "1993-09-01",
+ "1993-10-01",
+ "1993-11-01",
+ "1993-12-01",
+ "1994-01-01",
+ "1994-02-01",
+ "1994-03-01",
+ "1994-04-01",
+ "1994-05-01",
+ "1994-06-01",
+ "1994-07-01",
+ "1994-08-01",
+ "1994-09-01",
+ "1994-10-01",
+ "1994-11-01",
+ "1994-12-01",
+ "1995-01-01",
+ "1995-02-01",
+ "1995-03-01",
+ "1995-04-01",
+ "1995-05-01",
+ "1995-06-01",
+ "1995-07-01",
+ "1995-08-01",
+ "1995-09-01",
+ "1995-10-01",
+ "1995-11-01",
+ "1995-12-01",
+ "1996-01-01",
+ "1996-02-01",
+ "1996-03-01",
+ "1996-04-01",
+ "1996-05-01",
+ "1996-06-01",
+ "1996-07-01",
+ "1996-08-01",
+ "1996-09-01",
+ "1996-10-01",
+ "1996-11-01",
+ "1996-12-01",
+ "1997-01-01",
+ "1997-02-01",
+ "1997-03-01",
+ "1997-04-01",
+ "1997-05-01",
+ "1997-06-01",
+ "1997-07-01",
+ "1997-08-01",
+ "1997-09-01",
+ "1997-10-01",
+ "1997-11-01",
+ "1997-12-01",
+ "1998-01-01",
+ "1998-02-01",
+ "1998-03-01",
+ "1998-04-01",
+ "1998-05-01",
+ "1998-06-01",
+ "1998-07-01",
+ "1998-08-01",
+ "1998-09-01",
+ "1998-10-01",
+ "1998-11-01",
+ "1998-12-01",
+ "1999-01-01",
+ "1999-02-01",
+ "1999-03-01",
+ "1999-04-01",
+ "1999-05-01",
+ "1999-06-01",
+ "1999-07-01",
+ "1999-08-01",
+ "1999-09-01",
+ "1999-10-01",
+ "1999-11-01",
+ "1999-12-01",
+ "2000-01-01",
+ "2000-02-01",
+ "2000-03-01",
+ "2000-04-01",
+ "2000-05-01",
+ "2000-06-01",
+ "2000-07-01",
+ "2000-08-01",
+ "2000-09-01",
+ "2000-10-01",
+ "2000-11-01",
+ "2000-12-01",
+ "2001-01-01",
+ "2001-02-01",
+ "2001-03-01",
+ "2001-04-01",
+ "2001-05-01",
+ "2001-06-01",
+ "2001-07-01",
+ "2001-08-01",
+ "2001-09-01",
+ "2001-10-01",
+ "2001-11-01",
+ "2001-12-01",
+ "2002-01-01",
+ "2002-02-01",
+ "2002-03-01",
+ "2002-04-01",
+ "2002-05-01",
+ "2002-06-01",
+ "2002-07-01",
+ "2002-08-01",
+ "2002-09-01",
+ "2002-10-01",
+ "2002-11-01",
+ "2002-12-01",
+ "2003-01-01",
+ "2003-02-01",
+ "2003-03-01",
+ "2003-04-01",
+ "2003-05-01",
+ "2003-06-01",
+ "2003-07-01",
+ "2003-08-01",
+ "2003-09-01",
+ "2003-10-01",
+ "2003-11-01",
+ "2003-12-01",
+ "2004-01-01",
+ "2004-02-01",
+ "2004-03-01",
+ "2004-04-01",
+ "2004-05-01",
+ "2004-06-01",
+ "2004-07-01",
+ "2004-08-01",
+ "2004-09-01",
+ "2004-10-01",
+ "2004-11-01",
+ "2004-12-01",
+ "2005-01-01",
+ "2005-02-01",
+ "2005-03-01",
+ "2005-04-01",
+ "2005-05-01",
+ "2005-06-01",
+ "2005-07-01",
+ "2005-08-01",
+ "2005-09-01",
+ "2005-10-01",
+ "2005-11-01",
+ "2005-12-01",
+ "2006-01-01",
+ "2006-02-01",
+ "2006-03-01",
+ "2006-04-01",
+ "2006-05-01",
+ "2006-06-01",
+ "2006-07-01",
+ "2006-08-01",
+ "2006-09-01",
+ "2006-10-01",
+ "2006-11-01",
+ "2006-12-01",
+ "2007-01-01",
+ "2007-02-01",
+ "2007-03-01",
+ "2007-04-01",
+ "2007-05-01",
+ "2007-06-01",
+ "2007-07-01",
+ "2007-08-01",
+ "2007-09-01",
+ "2007-10-01",
+ "2007-11-01",
+ "2007-12-01",
+ "2008-01-01",
+ "2008-02-01",
+ "2008-03-01",
+ "2008-04-01",
+ "2008-05-01",
+ "2008-06-01",
+ "2008-07-01",
+ "2008-08-01",
+ "2008-09-01",
+ "2008-10-01",
+ "2008-11-01",
+ "2008-12-01",
+ "2009-01-01",
+ "2009-02-01",
+ "2009-03-01",
+ "2009-04-01",
+ "2009-05-01",
+ "2009-06-01",
+ "2009-07-01",
+ "2009-08-01",
+ "2009-09-01",
+ "2009-10-01",
+ "2009-11-01",
+ "2009-12-01",
+ "2010-01-01",
+ "2010-02-01",
+ "2010-03-01",
+ "2010-04-01",
+ "2010-05-01",
+ "2010-06-01",
+ "2010-07-01",
+ "2010-08-01",
+ "2010-09-01",
+ "2010-10-01",
+ "2010-11-01",
+ "2010-12-01",
+ "2011-01-01",
+ "2011-02-01",
+ "2011-03-01",
+ "2011-04-01",
+ "2011-05-01",
+ "2011-06-01",
+ "2011-07-01",
+ "2011-08-01",
+ "2011-09-01",
+ "2011-10-01",
+ "2011-11-01",
+ "2011-12-01",
+ "2012-01-01",
+ "2012-02-01",
+ "2012-03-01",
+ "2012-04-01",
+ "2012-05-01",
+ "2012-06-01",
+ "2012-07-01",
+ "2012-08-01",
+ "2012-09-01",
+ "2012-10-01",
+ "2012-11-01",
+ "2012-12-01",
+ "2013-01-01",
+ "2013-02-01",
+ "2013-03-01",
+ "2013-04-01",
+ "2013-05-01",
+ "2013-06-01",
+ "2013-07-01",
+ "2013-08-01",
+ "2013-09-01",
+ "2013-10-01",
+ "2013-11-01",
+ "2013-12-01",
+ "2014-01-01",
+ "2014-02-01",
+ "2014-03-01",
+ "2014-04-01",
+ "2014-05-01",
+ "2014-06-01",
+ "2014-07-01",
+ "2014-08-01",
+ "2014-09-01",
+ "2014-10-01",
+ "2014-11-01",
+ "2014-12-01",
+ "2015-01-01",
+ "2015-02-01",
+ "2015-03-01",
+ "2015-04-01",
+ "2015-05-01",
+ "2015-06-01",
+ "2015-07-01",
+ "2015-08-01",
+ "2015-09-01",
+ "2015-10-01",
+ "2015-11-01",
+ "2015-12-01",
+ "2016-01-01",
+ "2016-02-01",
+ "2016-03-01",
+ "2016-04-01",
+ "2016-05-01",
+ "2016-06-01",
+ "2016-07-01",
+ "2016-08-01",
+ "2016-09-01",
+ "2016-10-01",
+ "2016-11-01",
+ "2016-12-01",
+ "2017-01-01",
+ "2017-02-01",
+ "2017-03-01",
+ "2017-04-01",
+ "2017-05-01",
+ "2017-06-01",
+ "2017-07-01",
+ "2017-08-01",
+ "2017-09-01",
+ "2017-10-01",
+ "2017-11-01",
+ "2017-12-01",
+ "2018-01-01"
+ ],
+ "y": [
+ 72.5052,
+ 70.672,
+ 62.4502,
+ 57.4714,
+ 55.3151,
+ 58.0904,
+ 62.6202,
+ 63.2485,
+ 60.5846,
+ 56.3154,
+ 58.0005,
+ 68.7145,
+ 73.3057,
+ 67.9869,
+ 62.2221,
+ 57.0329,
+ 55.8137,
+ 59.9005,
+ 65.7655,
+ 64.4816,
+ 61.0005,
+ 57.5322,
+ 59.3417,
+ 68.1354,
+ 73.8152,
+ 70.062,
+ 65.61,
+ 60.1586,
+ 58.8734,
+ 63.8918,
+ 68.8694,
+ 70.0669,
+ 64.1151,
+ 60.3789,
+ 62.4643,
+ 70.5777,
+ 79.8703,
+ 76.1622,
+ 70.2928,
+ 63.2384,
+ 61.4065,
+ 67.1097,
+ 72.9816,
+ 75.7655,
+ 67.5152,
+ 63.2832,
+ 65.1078,
+ 73.8631,
+ 77.9188,
+ 76.6822,
+ 73.3523,
+ 65.1081,
+ 63.6892,
+ 68.4722,
+ 74.0301,
+ 75.0448,
+ 69.3053,
+ 65.8735,
+ 69.0706,
+ 84.1949,
+ 84.3598,
+ 77.1726,
+ 73.1964,
+ 67.2781,
+ 65.8218,
+ 71.4654,
+ 76.614,
+ 77.1052,
+ 73.061,
+ 67.4365,
+ 68.5665,
+ 77.6839,
+ 86.0214,
+ 77.5573,
+ 73.365,
+ 67.15,
+ 68.8162,
+ 74.8448,
+ 80.0928,
+ 79.1606,
+ 73.5743,
+ 68.7538,
+ 72.5166,
+ 79.4894,
+ 85.2855,
+ 80.1643,
+ 74.5275,
+ 69.6441,
+ 67.1784,
+ 71.2078,
+ 77.5081,
+ 76.5374,
+ 72.3541,
+ 69.0286,
+ 73.4992,
+ 84.5159,
+ 87.9464,
+ 84.5561,
+ 79.4747,
+ 71.0578,
+ 67.6762,
+ 74.3297,
+ 82.1048,
+ 82.0605,
+ 74.6031,
+ 69.681,
+ 74.4292,
+ 84.2284,
+ 94.1386,
+ 87.1607,
+ 79.2456,
+ 70.9749,
+ 69.3844,
+ 77.9831,
+ 83.277,
+ 81.8872,
+ 75.6826,
+ 71.2661,
+ 75.2458,
+ 84.8147,
+ 92.4532,
+ 87.4033,
+ 81.2661,
+ 73.8167,
+ 73.2682,
+ 78.3026,
+ 85.9841,
+ 89.5467,
+ 78.5035,
+ 73.7066,
+ 79.6543,
+ 90.8251,
+ 98.9732,
+ 92.8883,
+ 86.9356,
+ 77.2214,
+ 76.6826,
+ 81.9306,
+ 85.9606,
+ 86.5562,
+ 79.1919,
+ 74.6891,
+ 81.074,
+ 90.4855,
+ 98.4613,
+ 89.7795,
+ 83.0125,
+ 76.1476,
+ 73.8471,
+ 79.7645,
+ 88.4519,
+ 87.7828,
+ 81.9386,
+ 77.5027,
+ 82.0448,
+ 92.101,
+ 94.792,
+ 87.82,
+ 86.5549,
+ 76.7521,
+ 78.0303,
+ 86.4579,
+ 93.8379,
+ 93.531,
+ 87.5414,
+ 80.0924,
+ 81.4349,
+ 91.6841,
+ 102.1348,
+ 91.1829,
+ 90.7381,
+ 80.5176,
+ 79.3887,
+ 87.8431,
+ 97.4903,
+ 96.4157,
+ 87.2248,
+ 80.6409,
+ 82.2025,
+ 94.5113,
+ 102.2301,
+ 94.2989,
+ 88.0927,
+ 81.4425,
+ 84.4552,
+ 91.0406,
+ 95.9957,
+ 99.3704,
+ 90.9178,
+ 83.1408,
+ 88.041,
+ 102.4558,
+ 109.1081,
+ 97.1717,
+ 92.8283,
+ 82.915,
+ 82.5465,
+ 90.3955,
+ 96.074,
+ 99.5534,
+ 88.281,
+ 82.686,
+ 82.9319,
+ 93.0381,
+ 102.9955,
+ 95.2075,
+ 93.2556,
+ 85.795,
+ 85.2351,
+ 93.1896,
+ 102.393,
+ 101.6293,
+ 93.3089,
+ 86.9002,
+ 88.5749,
+ 100.8003,
+ 110.1807,
+ 103.8413,
+ 94.5532,
+ 85.062,
+ 85.4653,
+ 91.0761,
+ 102.22,
+ 104.4682,
+ 92.9135,
+ 86.5047,
+ 88.5735,
+ 103.5428,
+ 113.7226,
+ 106.159,
+ 95.4029,
+ 86.7233,
+ 89.0302,
+ 95.5045,
+ 101.7948,
+ 100.2025,
+ 94.024,
+ 87.5262,
+ 89.6144,
+ 105.7263,
+ 111.1614,
+ 101.7795,
+ 98.9565,
+ 86.4776,
+ 87.2234,
+ 99.5076,
+ 108.3501,
+ 109.4862,
+ 99.1155,
+ 89.7567,
+ 90.4587,
+ 108.2257,
+ 104.4724,
+ 101.5196,
+ 98.4017,
+ 87.5093,
+ 90.0222,
+ 100.5244,
+ 110.9503,
+ 111.5192,
+ 95.7632,
+ 90.3738,
+ 92.3566,
+ 103.066,
+ 112.0576,
+ 111.8399,
+ 99.1925,
+ 90.8177,
+ 92.0587,
+ 100.9676,
+ 107.5686,
+ 114.1036,
+ 101.5316,
+ 93.0068,
+ 93.9126,
+ 106.7528,
+ 114.8331,
+ 108.2353,
+ 100.4386,
+ 90.9944,
+ 91.2348,
+ 103.9581,
+ 110.7631,
+ 107.5665,
+ 97.7183,
+ 90.9979,
+ 93.8057,
+ 109.4221,
+ 116.8316,
+ 104.4202,
+ 97.8529,
+ 88.1973,
+ 87.5366,
+ 97.2387,
+ 103.9086,
+ 105.7486,
+ 94.8823,
+ 89.2977,
+ 89.3585,
+ 110.6844,
+ 119.0166,
+ 110.533,
+ 98.2672,
+ 86.3,
+ 90.8364,
+ 104.3538,
+ 112.8066,
+ 112.9014,
+ 100.1209,
+ 88.9251,
+ 92.775,
+ 114.3266,
+ 119.488,
+ 107.3753,
+ 99.1028,
+ 89.3583,
+ 90.0698,
+ 102.8204,
+ 114.7068,
+ 113.5958,
+ 99.4712,
+ 90.3566,
+ 93.8095,
+ 107.3312,
+ 111.9646,
+ 103.3679,
+ 93.5772,
+ 87.5566,
+ 92.7603,
+ 101.14,
+ 113.0357,
+ 109.8601,
+ 96.7431,
+ 90.3805,
+ 94.3417,
+ 105.2722,
+ 115.501,
+ 106.734,
+ 102.9948,
+ 91.0092,
+ 90.9634,
+ 100.6957,
+ 110.148,
+ 108.1756,
+ 99.2809,
+ 91.7871,
+ 97.2853,
+ 113.4732,
+ 124.2549,
+ 112.8811,
+ 104.7631,
+ 90.2867,
+ 92.134,
+ 101.878,
+ 108.5497,
+ 108.194,
+ 100.4172,
+ 92.3837,
+ 99.7033,
+ 109.3477,
+ 120.2696,
+ 116.3788,
+ 104.4706,
+ 89.7461,
+ 91.093,
+ 102.6495,
+ 111.6354,
+ 110.5925,
+ 101.9204,
+ 91.5959,
+ 93.0628,
+ 103.2203,
+ 117.0837,
+ 106.6688,
+ 95.3548,
+ 89.3254,
+ 90.7369,
+ 104.0375,
+ 114.5397,
+ 115.5159,
+ 102.7637,
+ 91.4867,
+ 92.89,
+ 112.7694,
+ 114.8505,
+ 99.4901,
+ 101.0396,
+ 88.353,
+ 92.0805,
+ 102.1532,
+ 112.1538,
+ 108.9312,
+ 98.6154,
+ 93.6137,
+ 97.3359,
+ 114.7212,
+ 129.4048
+ ]
+ },
+ {
+ "line": {
+ "color": "rgba(55, 128, 191, 1.0)",
+ "dash": "solid",
+ "shape": "linear",
+ "width": 1.3
+ },
+ "mode": "lines",
+ "name": "Prediction",
+ "text": "",
+ "type": "scatter",
+ "uid": "7acfd2a6-dd42-11e8-90d2-731cf42c8884",
+ "x": [
+ "1985-01-01",
+ "1985-02-01",
+ "1985-03-01",
+ "1985-04-01",
+ "1985-05-01",
+ "1985-06-01",
+ "1985-07-01",
+ "1985-08-01",
+ "1985-09-01",
+ "1985-10-01",
+ "1985-11-01",
+ "1985-12-01",
+ "1986-01-01",
+ "1986-02-01",
+ "1986-03-01",
+ "1986-04-01",
+ "1986-05-01",
+ "1986-06-01",
+ "1986-07-01",
+ "1986-08-01",
+ "1986-09-01",
+ "1986-10-01",
+ "1986-11-01",
+ "1986-12-01",
+ "1987-01-01",
+ "1987-02-01",
+ "1987-03-01",
+ "1987-04-01",
+ "1987-05-01",
+ "1987-06-01",
+ "1987-07-01",
+ "1987-08-01",
+ "1987-09-01",
+ "1987-10-01",
+ "1987-11-01",
+ "1987-12-01",
+ "1988-01-01",
+ "1988-02-01",
+ "1988-03-01",
+ "1988-04-01",
+ "1988-05-01",
+ "1988-06-01",
+ "1988-07-01",
+ "1988-08-01",
+ "1988-09-01",
+ "1988-10-01",
+ "1988-11-01",
+ "1988-12-01",
+ "1989-01-01",
+ "1989-02-01",
+ "1989-03-01",
+ "1989-04-01",
+ "1989-05-01",
+ "1989-06-01",
+ "1989-07-01",
+ "1989-08-01",
+ "1989-09-01",
+ "1989-10-01",
+ "1989-11-01",
+ "1989-12-01",
+ "1990-01-01",
+ "1990-02-01",
+ "1990-03-01",
+ "1990-04-01",
+ "1990-05-01",
+ "1990-06-01",
+ "1990-07-01",
+ "1990-08-01",
+ "1990-09-01",
+ "1990-10-01",
+ "1990-11-01",
+ "1990-12-01",
+ "1991-01-01",
+ "1991-02-01",
+ "1991-03-01",
+ "1991-04-01",
+ "1991-05-01",
+ "1991-06-01",
+ "1991-07-01",
+ "1991-08-01",
+ "1991-09-01",
+ "1991-10-01",
+ "1991-11-01",
+ "1991-12-01",
+ "1992-01-01",
+ "1992-02-01",
+ "1992-03-01",
+ "1992-04-01",
+ "1992-05-01",
+ "1992-06-01",
+ "1992-07-01",
+ "1992-08-01",
+ "1992-09-01",
+ "1992-10-01",
+ "1992-11-01",
+ "1992-12-01",
+ "1993-01-01",
+ "1993-02-01",
+ "1993-03-01",
+ "1993-04-01",
+ "1993-05-01",
+ "1993-06-01",
+ "1993-07-01",
+ "1993-08-01",
+ "1993-09-01",
+ "1993-10-01",
+ "1993-11-01",
+ "1993-12-01",
+ "1994-01-01",
+ "1994-02-01",
+ "1994-03-01",
+ "1994-04-01",
+ "1994-05-01",
+ "1994-06-01",
+ "1994-07-01",
+ "1994-08-01",
+ "1994-09-01",
+ "1994-10-01",
+ "1994-11-01",
+ "1994-12-01",
+ "1995-01-01",
+ "1995-02-01",
+ "1995-03-01",
+ "1995-04-01",
+ "1995-05-01",
+ "1995-06-01",
+ "1995-07-01",
+ "1995-08-01",
+ "1995-09-01",
+ "1995-10-01",
+ "1995-11-01",
+ "1995-12-01",
+ "1996-01-01",
+ "1996-02-01",
+ "1996-03-01",
+ "1996-04-01",
+ "1996-05-01",
+ "1996-06-01",
+ "1996-07-01",
+ "1996-08-01",
+ "1996-09-01",
+ "1996-10-01",
+ "1996-11-01",
+ "1996-12-01",
+ "1997-01-01",
+ "1997-02-01",
+ "1997-03-01",
+ "1997-04-01",
+ "1997-05-01",
+ "1997-06-01",
+ "1997-07-01",
+ "1997-08-01",
+ "1997-09-01",
+ "1997-10-01",
+ "1997-11-01",
+ "1997-12-01",
+ "1998-01-01",
+ "1998-02-01",
+ "1998-03-01",
+ "1998-04-01",
+ "1998-05-01",
+ "1998-06-01",
+ "1998-07-01",
+ "1998-08-01",
+ "1998-09-01",
+ "1998-10-01",
+ "1998-11-01",
+ "1998-12-01",
+ "1999-01-01",
+ "1999-02-01",
+ "1999-03-01",
+ "1999-04-01",
+ "1999-05-01",
+ "1999-06-01",
+ "1999-07-01",
+ "1999-08-01",
+ "1999-09-01",
+ "1999-10-01",
+ "1999-11-01",
+ "1999-12-01",
+ "2000-01-01",
+ "2000-02-01",
+ "2000-03-01",
+ "2000-04-01",
+ "2000-05-01",
+ "2000-06-01",
+ "2000-07-01",
+ "2000-08-01",
+ "2000-09-01",
+ "2000-10-01",
+ "2000-11-01",
+ "2000-12-01",
+ "2001-01-01",
+ "2001-02-01",
+ "2001-03-01",
+ "2001-04-01",
+ "2001-05-01",
+ "2001-06-01",
+ "2001-07-01",
+ "2001-08-01",
+ "2001-09-01",
+ "2001-10-01",
+ "2001-11-01",
+ "2001-12-01",
+ "2002-01-01",
+ "2002-02-01",
+ "2002-03-01",
+ "2002-04-01",
+ "2002-05-01",
+ "2002-06-01",
+ "2002-07-01",
+ "2002-08-01",
+ "2002-09-01",
+ "2002-10-01",
+ "2002-11-01",
+ "2002-12-01",
+ "2003-01-01",
+ "2003-02-01",
+ "2003-03-01",
+ "2003-04-01",
+ "2003-05-01",
+ "2003-06-01",
+ "2003-07-01",
+ "2003-08-01",
+ "2003-09-01",
+ "2003-10-01",
+ "2003-11-01",
+ "2003-12-01",
+ "2004-01-01",
+ "2004-02-01",
+ "2004-03-01",
+ "2004-04-01",
+ "2004-05-01",
+ "2004-06-01",
+ "2004-07-01",
+ "2004-08-01",
+ "2004-09-01",
+ "2004-10-01",
+ "2004-11-01",
+ "2004-12-01",
+ "2005-01-01",
+ "2005-02-01",
+ "2005-03-01",
+ "2005-04-01",
+ "2005-05-01",
+ "2005-06-01",
+ "2005-07-01",
+ "2005-08-01",
+ "2005-09-01",
+ "2005-10-01",
+ "2005-11-01",
+ "2005-12-01",
+ "2006-01-01",
+ "2006-02-01",
+ "2006-03-01",
+ "2006-04-01",
+ "2006-05-01",
+ "2006-06-01",
+ "2006-07-01",
+ "2006-08-01",
+ "2006-09-01",
+ "2006-10-01",
+ "2006-11-01",
+ "2006-12-01",
+ "2007-01-01",
+ "2007-02-01",
+ "2007-03-01",
+ "2007-04-01",
+ "2007-05-01",
+ "2007-06-01",
+ "2007-07-01",
+ "2007-08-01",
+ "2007-09-01",
+ "2007-10-01",
+ "2007-11-01",
+ "2007-12-01",
+ "2008-01-01",
+ "2008-02-01",
+ "2008-03-01",
+ "2008-04-01",
+ "2008-05-01",
+ "2008-06-01",
+ "2008-07-01",
+ "2008-08-01",
+ "2008-09-01",
+ "2008-10-01",
+ "2008-11-01",
+ "2008-12-01",
+ "2009-01-01",
+ "2009-02-01",
+ "2009-03-01",
+ "2009-04-01",
+ "2009-05-01",
+ "2009-06-01",
+ "2009-07-01",
+ "2009-08-01",
+ "2009-09-01",
+ "2009-10-01",
+ "2009-11-01",
+ "2009-12-01",
+ "2010-01-01",
+ "2010-02-01",
+ "2010-03-01",
+ "2010-04-01",
+ "2010-05-01",
+ "2010-06-01",
+ "2010-07-01",
+ "2010-08-01",
+ "2010-09-01",
+ "2010-10-01",
+ "2010-11-01",
+ "2010-12-01",
+ "2011-01-01",
+ "2011-02-01",
+ "2011-03-01",
+ "2011-04-01",
+ "2011-05-01",
+ "2011-06-01",
+ "2011-07-01",
+ "2011-08-01",
+ "2011-09-01",
+ "2011-10-01",
+ "2011-11-01",
+ "2011-12-01",
+ "2012-01-01",
+ "2012-02-01",
+ "2012-03-01",
+ "2012-04-01",
+ "2012-05-01",
+ "2012-06-01",
+ "2012-07-01",
+ "2012-08-01",
+ "2012-09-01",
+ "2012-10-01",
+ "2012-11-01",
+ "2012-12-01",
+ "2013-01-01",
+ "2013-02-01",
+ "2013-03-01",
+ "2013-04-01",
+ "2013-05-01",
+ "2013-06-01",
+ "2013-07-01",
+ "2013-08-01",
+ "2013-09-01",
+ "2013-10-01",
+ "2013-11-01",
+ "2013-12-01",
+ "2014-01-01",
+ "2014-02-01",
+ "2014-03-01",
+ "2014-04-01",
+ "2014-05-01",
+ "2014-06-01",
+ "2014-07-01",
+ "2014-08-01",
+ "2014-09-01",
+ "2014-10-01",
+ "2014-11-01",
+ "2014-12-01",
+ "2015-01-01",
+ "2015-02-01",
+ "2015-03-01",
+ "2015-04-01",
+ "2015-05-01",
+ "2015-06-01",
+ "2015-07-01",
+ "2015-08-01",
+ "2015-09-01",
+ "2015-10-01",
+ "2015-11-01",
+ "2015-12-01",
+ "2016-01-01",
+ "2016-02-01",
+ "2016-03-01",
+ "2016-04-01",
+ "2016-05-01",
+ "2016-06-01",
+ "2016-07-01",
+ "2016-08-01",
+ "2016-09-01",
+ "2016-10-01",
+ "2016-11-01",
+ "2016-12-01",
+ "2017-01-01",
+ "2017-02-01",
+ "2017-03-01",
+ "2017-04-01",
+ "2017-05-01",
+ "2017-06-01",
+ "2017-07-01",
+ "2017-08-01",
+ "2017-09-01",
+ "2017-10-01",
+ "2017-11-01",
+ "2017-12-01",
+ "2018-01-01"
+ ],
+ "y": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ 120.96887958210054,
+ 109.86894842219517,
+ 100.40214074448538,
+ 90.58579401119373,
+ 92.18309427053822,
+ 103.27339949889165,
+ 112.94929080171991,
+ 112.21561494614397,
+ 100.96895074933407,
+ 91.94468210293627,
+ 95.772920186207,
+ 111.23777428783035,
+ 120.36178748510943,
+ 110.93821567666191,
+ 102.0054389071919,
+ 90.51827932727072,
+ 92.19307772413921,
+ 102.84332550354299,
+ 112.0890395914807,
+ 110.97099115628905,
+ 100.77485186159268,
+ 92.04009422717213,
+ 96.27309179270213,
+ 109.576296184453,
+ 119.90316977096785,
+ 110.99147011491104,
+ 101.57663659952316,
+ 90.2634581409609,
+ 91.85280789248604,
+ 102.86519884287623,
+ 112.12271640983474,
+ 111.28124902045212,
+ 101.12252718053162,
+ 91.90083966033748,
+ 95.65177024607117,
+ 109.20122110102453,
+ 119.79168346964609
+ ]
+ }
+ ],
+ "layout": {
+ "legend": {
+ "bgcolor": "#F5F6F9",
+ "font": {
+ "color": "#4D5663"
+ }
+ },
+ "paper_bgcolor": "#F5F6F9",
+ "plot_bgcolor": "#F5F6F9",
+ "titlefont": {
+ "color": "#4D5663"
+ },
+ "xaxis": {
+ "gridcolor": "#E1E5ED",
+ "showgrid": true,
+ "tickfont": {
+ "color": "#4D5663"
+ },
+ "title": "",
+ "titlefont": {
+ "color": "#4D5663"
+ },
+ "zerolinecolor": "#E1E5ED"
+ },
+ "yaxis": {
+ "gridcolor": "#E1E5ED",
+ "showgrid": true,
+ "tickfont": {
+ "color": "#4D5663"
+ },
+ "title": "",
+ "titlefont": {
+ "color": "#4D5663"
+ },
+ "zerolinecolor": "#E1E5ED"
+ }
+ }
+ },
"text/html": [
- ""
+ ""
],
- "text/plain": [
- ""
+ "text/vnd.plotly.v1+html": [
+ ""
]
},
- "execution_count": 48,
"metadata": {},
- "output_type": "execute_result"
+ "output_type": "display_data"
}
],
"source": [
- "pd.concat([data,future_forecast2],axis=1).iplot()"
+ "iplot(pd.concat([data,future_forecast],axis=1).iplot(asFigure=True))"
]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": true
- },
- "outputs": [],
- "source": []
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
- "display_name": "Python 3",
+ "display_name": "Auto-Arima (Py3)",
"language": "python",
- "name": "python3"
+ "name": "auto-arima"
},
"language_info": {
"codemirror_mode": {
@@ -1257,7 +7473,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.1"
+ "version": "3.6.6"
}
},
"nbformat": 4,
diff --git a/README.md b/README.md
index 494c576..7e6488c 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,29 @@
# Blog-Posts
-This is the Repo for the Notebooks for our Blog Posts
+
+This is the Repo for the Notebooks for our Blog Posts.
+
+## Setup & Running
+
+To run notebooks in this repo, you'll need to recreate the kernel used to
+create them. You can do this quite simply. First, create the conda env by
+navigating to the project directory and running:
+
+```
+$ conda env create -f env.yml
+```
+
+Then you'll need to register this environment as an ipython kernel ([1]). Use the
+following command:
+
+```
+$ conda activate
+(auto-arima) $ python -m ipykernel install --user --name auto-arima --display-name "Auto-Arima (Py3)"
+```
+
+Now you'll be able to run the notebooks via Jupyter notebook or Jupyterhub.
+
+If you don't have `conda` installed, you can get it with the `miniconda`
+distribtution ([2]).
+
+[1]: https://ipython.readthedocs.io/en/stable/install/kernel_install.html
+[2]: https://conda.io/miniconda.html
diff --git a/env.yml b/env.yml
new file mode 100644
index 0000000..d10fe4f
--- /dev/null
+++ b/env.yml
@@ -0,0 +1,14 @@
+name: auto-arima
+channels:
+ - defaults
+dependencies:
+ - ipykernel=5.1.0
+ - matplotlib=3.0.1
+ - pandas=0.23.4
+ - python=3.6
+ - scikit-learn=0.20.0
+ - statsmodels=0.9.0
+ - pip:
+ - cufflinks==0.14.5
+ - plotly==3.3.0
+ - pyramid-arima==0.8.1