Merge pull request #1218 from quantopian/datareader-replace

MAINT: replace usages of pandas.io.data.DataReader with pandas_datare…
This commit is contained in:
Joe Jevnik
2016-05-20 12:36:00 -04:00
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -6,7 +6,7 @@ from os.path import (
dirname,
join,
)
from pandas.io.data import get_data_yahoo
from pandas_datareader.data import DataReader
here = join(dirname(__file__))
@@ -15,7 +15,12 @@ def main():
symbols = ['AAPL', 'MSFT', 'BRK-A']
# Specifically chosen to include the AAPL split on June 9, 2014.
for symbol in symbols:
data = get_data_yahoo(symbol, start='2014-03-01', end='2014-09-01')
data = DataReader(
symbol,
'yahoo',
start='2014-03-01',
end='2014-09-01',
)
data.rename(
columns={
'Open': 'open',
+1 -1
View File
@@ -17,7 +17,7 @@ from collections import OrderedDict
import logbook
import pandas as pd
from pandas.io.data import DataReader
from pandas_datareader.data import DataReader
import pytz
from six import iteritems
from six.moves.urllib_error import HTTPError