# Libraries
import pandas as pd
from pandas.io.data import DataReader
import matplotlib.pyplot as plt
# Data download
df = DataReader("SPY", "yahoo", "20000101", "20140612")
# See first records
df.head()
# Plot the data
plt.plot(df.index, df['Close'])
plt.show()