-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
CLN: avoid upcasting in tests where unnecessary (PDEP-6 precursor) #53104
CLN: avoid upcasting in tests where unnecessary (PDEP-6 precursor) #53104
Conversation
@@ -328,15 +328,14 @@ def test_where_bug_mixed(self, any_signed_int_numpy_dtype): | |||
) | |||
|
|||
expected = DataFrame( | |||
{"a": [np.nan, np.nan, 3.0, 4.0], "b": [4.0, 3.0, np.nan, np.nan]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changing this test to fill with -1 instead of with nan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just checking: you looked at the original issue and confirmed this still tests the relevant bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah the original issue is just about having mixed dtypes #2793 , I've preserved that but have just updated the fill value to one which won't upcast
I think I'm scraping the barrel here with these precursors, there's probably not much more to factor out which doesn't intentionally test upcasting behaviour
Thanks @MarcoGorelli |
…andas-dev#53104) * remove more upcasts * 🎨 --------- Co-authored-by: MarcoGorelli <>
…andas-dev#53104) * remove more upcasts * 🎨 --------- Co-authored-by: MarcoGorelli <>
…andas-dev#53104) * remove more upcasts * 🎨 --------- Co-authored-by: MarcoGorelli <>
another precursor to PDEP6, similar to #52957
turns out there were even more of these which could be factored upon further inspection