-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
.isin implicitly converts data types #19356
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
cross data type conversion is hard. Its somewhere: https://github.com/pandas-dev/pandas/blob/master/pandas/core/algorithms.py#L66. pull requests welcome. |
Will take a look today |
this issue seems to overlap with: #21804 |
I see @phofl started earlier with the PR, so I dont mind leaving this to him. |
Thx, I will look into this and give feedback if mine fixes both |
Issues look similar and (our proposed modifications too!), so I guess it will fix both :) |
It is exactly the same :) |
Code Sample, a copy-pastable example if possible
Problem description
.isin seems to implicitly convert the data type of what is passed in values depending on the data type of the Series. In the above example, I would expect the output to be (True, False) in both cases. There seems to have been a change in behavior after pandas version 0.19.2. With version 0.19.2 the output is in both cases (True, False).
Expected Output
The text was updated successfully, but these errors were encountered: