簡體   English   中英

pandas_datareader的問題

[英]Issue with pandas_datareader

我是python世界的新手,正在嘗試使用pandas_datareader來獲取數據,但面臨以下問題。

import numpy as np
import datetime
import pandas as pd
import pandas_datareader as web
start = datetime.datetime(2017, 1, 1)
end = datetime.datetime(2017, 12, 31)
AAPL = web.get_data_yahoo('AAPL', 'yahoo', start, end)

追溯(最近一次通話):

File "<stdin>", line 1, in <module>   File
"C:\Users\DELL\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas_datareader\data.py",
line 63, in get_data_yahoo
    raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Yahoo Actions')) pandas_datareader.exceptions.ImmediateDeprecationError:
Yahoo Actions has been immediately deprecated due to large breaks in
the API without the introduction of a stable replacement. Pull
Requests to re-enable these data connectors are welcome.

參見https://github.com/pydata/pandas-datareader/issues

雅虎去年關閉了他們的API,因此pandas_datareader棄用了該功能(停用)。 嘗試改用quandl

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM