Change Finance Options signatures and deprecate year/month parameters by gliptak · Pull Request #3822 · pandas-dev/pandas (original) (raw)
This is the error this build gets (my local unit test was running without errors ...). Investigating:
======================================================================
ERROR: test_options (pandas.io.tests.test_yahoo.TestYahoo)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pandas-0.11.1.dev_d26f4b6-py2.7-linux-x86_64.egg/pandas/io/tests/test_yahoo.py", line 131, in test_options
(calls, puts) = aapl.get_near_stock_price(call=True, put=True, dt=dt)
File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pandas-0.11.1.dev_d26f4b6-py2.7-linux-x86_64.egg/pandas/io/data.py", line 768, in get_near_stock_price
start_index = np.where(df_c['Strike'] > price)[0][0]
IndexError: index out of bounds
======================================================================
ERROR: test_options_warnings (pandas.io.tests.test_yahoo.TestYahoo)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pandas-0.11.1.dev_d26f4b6-py2.7-linux-x86_64.egg/pandas/io/tests/test_yahoo.py", line 155, in test_options_warnings
(calls, puts) = aapl.get_near_stock_price(call=True, put=True, month=month, year=year)
File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pandas-0.11.1.dev_d26f4b6-py2.7-linux-x86_64.egg/pandas/io/data.py", line 768, in get_near_stock_price
start_index = np.where(df_c['Strike'] > price)[0][0]
IndexError: index out of bounds
----------------------------------------------------------------------
Ran 3263 tests in 85.929s
FAILED (SKIP=42, errors=2)