Error from import DataReader

ryanshuell at ryanshuell at
Thu Oct 2 03:50:37 CEST 2014

I am trying to run this snippet of code.

from import DataReader
from pandas import Panel, DataFrame
import datetime

start = datetime.datetime(2010, 1, 1)
end = datetime.datetime(2013, 1, 27)

with open('dow.txt') as f:
    symbols =  # ['AAPL', 'GLD', 'SPX', 'MCD']
data = dict((symbol, DataReader(symbol, "yahoo", start, end, pause=1)) for symbol in symbols)
panel = Panel(data).swapaxes('items', 'minor')
closing = panel['Close'].dropna()

I keep getting this error.
Traceback (most recent call last):
  File "C:\Python27\", line 1, in <module>
    from import DataReader
ImportError: No module named

More information about the Python-list mailing list