-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: __getitem__ with boolean type #10607
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
Comments
Thanks for the report. I understand the problem is unrelated to
|
Yes it's really more about indexing with bool type index. |
yeh this is an edge case; could be addressed by using
in |
Looked little, and it is likely to be caused by
|
It looks like this raises now and I believe we have tests for this so closing |
If a series contains boolean data,
value_counts()
do not return the count in the descending order. However the counts are correct if accessing throughiloc
. I supposed that is because 0 is cast into False and 1 is cast into True?The text was updated successfully, but these errors were encountered: