数据读取器未执行

时间:2019-03-29 00:40:32

标签: pandas-datareader

import datetime
import pandas as pd
from pandas_datareader import data, wb

start = datetime.datetime(2016, 1, 1)
end = datetime.datetime(2017, 1, 1)

aapl = data.DataReader("AAPL", "google", start, end)

我遇到以下错误:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-a9399d3253ee> in <module>()
      1 import datetime
      2 import pandas as pd
----> 3 from pandas_datareader import data, wb
      4 
      5 start = datetime.datetime(2016, 1, 1)

ModuleNotFoundError: No module named 'pandas_datareader'

请帮助。

0 个答案:

没有答案