我之前使用的代码现在抛出错误。所以我现在尝试了Docs 0.15.1 for Options中给出的代码,这引发了类似的错误。
from pandas.io.data import Options
aapl = Options('aapl', 'yahoo')
data = aapl.get_all_data()
Traceback (most recent call last):
File "<ipython-input-10-a2dc6d91ec5f>", line 1, in <module>
data = aapl.get_all_data()
File "C:\Users\Ray\Anaconda\lib\site-packages\pandas\io\data.py", line 1111, in get_all_data
m2 = month.month
错误:
AttributeError: 'str' object has no attribute 'month'