You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
======================================================================
ERROR: test_nanargmin (pandas.tests.test_nanops.TestnanopsDataFrame)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/buildd/pandas-0.14.0+git213-g741b2fa/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_nanops.py", line 346, in test_nanargmin
allow_str=False, allow_obj=False)
File "/tmp/buildd/pandas-0.14.0+git213-g741b2fa/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_nanops.py", line 240, in check_funs
self.check_fun(testfunc, targfunc, 'arr_date', **kwargs)
File "/tmp/buildd/pandas-0.14.0+git213-g741b2fa/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_nanops.py", line 202, in check_fun
testarval, targarval, targarnanval, **kwargs)
File "/tmp/buildd/pandas-0.14.0+git213-g741b2fa/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_nanops.py", line 158, in check_fun_data
targ = targfunc(targartempval, axis=axis, **kwargs)
File "/tmp/buildd/pandas-0.14.0+git213-g741b2fa/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_nanops.py", line 323, in _argminmax_wrap
res = func(value, axis)
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 754, in argmin
return argmin(axis)
TypeError: ("ufunc 'subtract' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'", 'axis: 0 of 2', 'skipna: False', 'kwargs: {}', 'testar: arr_date', 'targar: arr_date', 'targarnan: arr_date')
@jreback: can you change the title of the bug to be:
"numpy1.6.1: test_nanargmin failure with datetime64 dtype".
This name is more specific about what is going on.
It seems this a problem with older versions of numpy (probably older than 1.7.0). I have made a workaround to test whether numpy can handle datetime64 dtypes the way nanops needs, and if not it skips them. I can't test it myself, though.
that was while building 0.14.0+git213-g741b2fa
The text was updated successfully, but these errors were encountered: