-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Test failures on numpydev #23172
Comments
From https://api.travis-ci.org/v3/job/441716261/log.txt to https://api.travis-ci.org/v3/job/441766904/log.txt, the relevant env changes are
pytest-xdist, certifies, and |
I can reproduce locally with Cython 0.28.5 and NumPy@86ebcffb482afb67c2f6ec4f396d9017ea610bf1 |
git bisect points to numpy/numpy@607842a (cc @shoyer) I'm just running |
Looking at the diff, nothing really jumps out. If it helps debug at all, that test is parametrized across a bunch of things. Just |
A not really minimal example of what changed is In [22]: df = pd.DataFrame([[1, 2], [3, 4]], columns=pd.MultiIndex.from_tuples([('A', 1), ('A', 2)]))
In [23]: df.skew(level=1, axis=1)
Out[23]:
1 0 NaN
1 NaN
dtype: float64
2 0 NaN
1 NaN
dtype: float64
dtype: object Previously that was In [1]: import pandas as pd
In [2]: df = pd.DataFrame([[1, 2], [3, 4]], columns=pd.MultiIndex.from_tuples([('A', 1), ('A', 2)]))
In [3]: df.skew(level=1, axis=1)
Out[3]:
1 2
0 NaN NaN
1 NaN NaN |
@shoyer do you have any guesses about why this would have been broken by If not, I'll revisit this tomorrow. |
The main thing that commit changes is that NumPy functions like Since pandas isn't using
Probably the best place to start would be with the definition of the |
I think the most likely culprit for this is that these changes to NumPy break |
Nevermind that -- my proposed NumPy patch didn't fix this failure in pandas, so probably something else is going on. |
I figured it out! The cause is numpy/numpy#12263 After applying the NumPy fix (numpy/numpy#12280), the pandas test suite outputs the following warning:
It looks like my second diagnosis above was mostly correct: the dispatcher for pandas/pandas/core/groupby/generic.py Lines 428 to 432 in da9d851
|
Wow, thanks for tracking that down :) I'll make time next week to get us running on NumPy dev again (we fail errors from NumPy on our numpydev build). |
e.g. https://travis-ci.org/pandas-dev/pandas/jobs/441869826
I can reproduce these locally.
I just restarted the latest build on master to ensure that they're present there.
The text was updated successfully, but these errors were encountered: