Python Programming for Finance p1

By @franklei6/11/2019bitcoin

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('fivethirtyeight')
#style.use('ggplot')

start = dt.datetime(2010,9,1)
end = dt.datetime(2019,6,5)

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

print(df.head(10))

20190611_092028.jpg

comments