In [39]: import pandas_datareader.data as web
In [40]: import pandas as pd
In [41]: import datetime as dt
In [42]: df = web.DataReader('GE', 'yahoo', start='2019-09-10', end='2019-10-09')
In [43]: df.head()
Out[43]:
High Low Open Close Volume Adj Close
Date
2019-09-10 9.27 8.90 8.91 9.14 62617200.0 9.062220
2019-09-11 9.36 9.06 9.15 9.36 57094900.0 9.280347
2019-09-12 9.52 9.22 9.40 9.26 68115100.0 9.181198
2019-09-13 9.45 9.14 9.31 9.34 45589400.0 9.270529
2019-09-16 9.42 9.17 9.30 9.38 45748400.0 9.310231
In [44]: start = dt.datetime(2010, 1, 29)
In [45]: end = dt.datetime.today()
In [46]: actions = web.DataReader('GOOG', 'yahoo-actions', start, end)
In [47]: actions.head()
Out[47]:
action value
2015-04-27 SPLIT 0.997262
2014-03-27 SPLIT 0.499500
In [48]: dividends = web.DataReader('IBM', 'yahoo-dividends', start, end)
In [49]: dividends.head()
Out[49]:
action value
2021-05-07 DIVIDEND 1.64
2021-02-09 DIVIDEND 1.63
2020-11-09 DIVIDEND 1.63
2020-08-07 DIVIDEND 1.63
2020-05-07 DIVIDEND 1.63