-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
isin() is not matching Boolean values correctly #11999
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
a problem here is in casting
so you'd have to explicitely set the type to
|
I agree. The |
See #6550 for a discussion of the larger issue with NumPy's casting rules promoting mixed string/anything to string. |
This is actually on our roadmap under "better coercion for string + number" |
Using
np.isin()
to match boolean values results in a strange, unexpected, behavior.Reproducing code example:
For
False
values it behaves the same (bad) as forTrue
Numpy/Python version information:
The text was updated successfully, but these errors were encountered: