import datetime as dt
import matplotlib.pyplot as plt
from matplotlib import style
import pandas as pd
import pandas_datareader.data as web

style.use('ggplot')

start = dt.datetime(2014,1,1)
end = dt.datetime.now()

df = web.DataReader("AAPL", 'yahoo', start, end)

df.reset_index(inplace=True)
df.set_index("Date", inplace=True)

print(df.head())
import datetime as dt
import matplotlib.pyplot as plt
from matplotlib import style
import pandas as pd
import pandas_datareader.data as web

style.use('ggplot')

start = dt.datetime(2014,1,1)
end = dt.datetime.now()

df = web.DataReader("AAPL", 'yahoo', start, end)

df.reset_index(inplace=True)
df.set_index("Date", inplace=True)

print(df.head())