BUG: unwanted casting in .isin
See original GitHub issuexref #19508 for a partial PR
In [3]: values = [1, 0.5]
...: pd.Series([1, 0]).isin(values)
...:
Out[3]:
0 True
1 True
dtype: bool
should be [True, False]
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
BUG: isin incorrectly casting ints to datetimes #37528 - GitHub
There are a bunch of GH issues about isin (added a new label yesterday), many of which are about unwanted casting. I haven't...
Read more >Casting Insects in Resin - YouTube
Visit bit.ly/insectphoto to submit your insect /arthropod photo for a chance to get it added to the wall.In this video we will discuss...
Read more >ClassCastException: cannot cast jdk.nashorn.internal.scripts.JO
Backport - A issue that is required to port a Bug or Feature into another product JDK-8058486 ClassCastException: cannot cast jdk.nashorn.internal.scripts.
Read more >[1.8][compiler] "Unnecessary cast" problems in lambda ... - Bugs
One solution would be to make a weaker warning "cast may be unnecessary", so > that UI can indeed trigger the rerun of...
Read more >Integer casting bug? - c++ - Stack Overflow
Try adding LL postfix to the number, The number 2 * 2000000000 is an expression that is evaluated as an int (which overflows)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s fine @KalyanGokhale, I am looking for some bug to start contributing to pandas, I though it culd be a good one, this one, but if you already solved it go for it
@jdoepfert Thanks for the groundwork on initial PR @gorbondiga just saw your comment. I was working on this for last 2 days and have fixed it - sorry for not commenting here earlier. If you haven’t already started working on it, please let me know whether its OK for me to submit PR? In case I don’t hear back by Friday, then I’ll submit a PR assuming its fine for me to do so. @jreback all tests do pass, though
pandas/tests/io/test_clipboard.py
module fails as part of suite - however passes when ran individually (seems unrelated to this bug fix). Have also ran the asvs for algorithms and results are as follows: