Is Series.isin() inconsistent for 'str' and 'int' type values?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Track title: CC L Beethoven - Piano Sonata No 8 in C
--
Chapters
00:00 Question
00:26 Accepted answer (Score 3)
00:51 Thank you
--
Full question
https://stackoverflow.com/questions/6068...
Accepted answer links:
https://github.com/pandas-dev/pandas/iss...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #pandas
#avk47
--
Track title: CC L Beethoven - Piano Sonata No 8 in C
--
Chapters
00:00 Question
00:26 Accepted answer (Score 3)
00:51 Thank you
--
Full question
https://stackoverflow.com/questions/6068...
Accepted answer links:
https://github.com/pandas-dev/pandas/iss...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #pandas
#avk47
ACCEPTED ANSWER
Score 3
It looks like there is a similar open issue for .isin() called Pandas doesn't always cast strings to int consistently when using .isin(): https://github.com/pandas-dev/pandas/issues/24918
The issue was opened and last commented on in January 2019.