Path: blob/master/lessons/lesson_16/rolling_averages - to help clean data and see growth and trends (GDP) (done).ipynb
1904 views
Kernel: Python 3
Greatest Economy in History?
In [1]:
Out[1]:
In [2]:
Read in the GDP Data
In [3]:
Out[3]:
In [4]:
Out[4]:
<matplotlib.lines.Line2D at 0x1077baa90>
Lets look at in Percent Differences
In [5]:
Out[5]:
<matplotlib.lines.Line2D at 0x10dc11080>
Lets zoom in
In [6]:
Out[6]:
<matplotlib.lines.Line2D at 0x1158cdeb8>
Lets look at this on 4 quarter rolling average basis
In [7]:
Out[7]:
/anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py:1: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
"""Entry point for launching an IPython kernel.
<matplotlib.lines.Line2D at 0x1158967b8>
What about momentum?
In [8]:
Out[8]:
/anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py:1: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
"""Entry point for launching an IPython kernel.
<matplotlib.lines.Line2D at 0x115a23a90>
In [9]:
Out[9]:
<matplotlib.lines.Line2D at 0x115b3b898>
In [ ]: