Up to date remote data access for pandas, works for multiple versions of pandas.
Install via pip
$ pip install pandas-datareader
In future pandas releases (0.17+) pandas-datareader will become a dependency and using pandas.io.data
will be equivalent to using pandas_datareader.data
.
For now, you must replace your imports from pandas.io
with pandas_datareader
:
from pandas.io import data, wb # becomes
from pandas_datareader import data, wb
Many functions from the data module have been included in the top level API.
import pandas_datareader as pdr
pdr.get_data_yahoo('AAPL')
See the pandas-datareader documentation for more details.