In [1]:
%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
In [2]:
plt.style.use('seaborn-notebook')
In [3]:
df_during = pd.read_csv('yhoo-2012-07-16-to-2017-06-04.csv',
parse_dates=['Date'])
df_during.sort_values('Date')
df_during.head()
Out[3]:
In [4]:
df_before = pd.read_csv('yhoo-2007-08-28-to-2012-07-16.csv',
parse_dates=['Date'])
df_before.sort_values('Date')
df_before.head()
Out[4]:
In [5]:
df_during.plot(x='Date', y='Close', ylim=[10, 60],
title="During Mayer's Tenure")
Out[5]:
In [6]:
df_before.plot(x='Date', y='Close', ylim=[10, 60],
title="Before Mayer's Tenure")
Out[6]:
In [ ]: