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(2000, 1, 1)
# end = dt.datetime.now()
# df = web.DataReader('tsla', 'yahoo', start, end)
# df.to_csv('tsla.csv')
df = pd.read_csv('tsla.csv', parse_dates=True, index_col=0)
print(df.head())
print(df[['Open', 'High']].head())
df['Adj Close'].plot()
plt.show()