Closed
Description
https://travis-ci.org/pydata/pandas/builds/107252660
This happens since the last commit, which was merging a pull request of mine... but Travis was green for me, and beside I can't see no connection between that:
ERROR: test_nankurt (pandas.tests.test_nanops.TestnanopsDataFrame)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/pydata/pandas/pandas/tests/test_nanops.py", line 141, in check_results
tm.assert_almost_equal(targ, res)
File "pandas/src/testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:3809)
cpdef assert_almost_equal(a, b, bint check_less_precise=False,
File "pandas/src/testing.pyx", line 156, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2830)
raise_assert_detail(obj, msg, a, b)
File "/home/travis/build/pydata/pandas/pandas/util/testing.py", line 842, in raise_assert_detail
raise AssertionError(msg)
AssertionError: Iterable are different
Second object is iterable, first isn't
[left]: nan
[right]: [[nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan], [nan, nan, nan, nan, nan]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/pydata/pandas/pandas/tests/test_nanops.py", line 453, in test_nankurt
allow_str=False, allow_date=False, allow_tdelta=False)
File "/home/travis/build/pydata/pandas/pandas/tests/test_nanops.py", line 233, in check_funs
**kwargs)
File "/home/travis/build/pydata/pandas/pandas/tests/test_nanops.py", line 222, in check_fun
targarnanval, **kwargs)
File "/home/travis/build/pydata/pandas/pandas/tests/test_nanops.py", line 184, in check_fun_data
self.check_results(targ, res, axis)
File "/home/travis/build/pydata/pandas/pandas/tests/test_nanops.py", line 144, in check_results
if targ.dtype == 'm8[ns]':
AttributeError: ("'float' object has no attribute 'dtype'", 'axis: 0 of 2', 'skipna: False', 'kwargs: {}', 'testar: arr_float_nan', 'targar: arr_float', 'targarnan: arr_float_nan')
and my commit, which was about the formatting of float strings.