我尝试过使用from matplotlib.finance import quotes_historical_yahoo_ochl
,但发现它已被弃用。因此,我安装了mpl_finance
,并尝试了以下操作:
from mpl_finance import quotes_historical_yahoo_ochl
但我得到了以下错误:
^{pr2}$我想看看:
dir(mpl_finance)
发现如下:
['Affine2D', 'Line2D', 'LineCollection', 'PolyCollection', 'Rectangle', 'TICKLEFT', 'TICKRIGHT', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_candlestick', '_check_input', '_plot_day_summary', 'absolute_import', 'candlestick2_ochl', 'candlestick2_ohlc', 'candlestick_ochl', 'candlestick_ohlc', 'division', 'index_bar', 'mcolors', 'np', 'plot_day_summary2_ochl', 'plot_day_summary2_ohlc', 'plot_day_summary_oclh', 'plot_day_summary_ohlc', 'print_function', 'unicode_literals', 'volume_overlay', 'volume_overlay2', 'volume_overlay3', 'xrange', 'zip']
请帮我解决这个问题。拜托。在
因为雅虎已经停止提供历史报价服务,}代码。在
quotes_historical_yahoo_ochl
函数停止工作。It was hence removed完全来自{相关问题 更多 >
编程相关推荐