-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ERR: validate boolean indexing with iloc #8976
Comments
As I said in the other issue, numpy has the same behaviour as pandas (which is strange), although there docs say the same as we think it should be: "Boolean arrays must be of the same shape as the initial dimensions of the array being indexed" (http://docs.scipy.org/doc/numpy/user/basics.indexing.html#boolean-or-mask-index-arrays):
|
In the meantime, numpy has changed this behaviour (already deprecated in 1.10, errors in 1.13), so we should follow I think. This should raise:
|
yep agreed. I think they wrapped around the booleans before. |
We now raise |
Closed by #26911 |
xref #8956
This should raise a
ValueError
.The text was updated successfully, but these errors were encountered: