-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
REF: merge_asof dont use values_for_argsort #45475
REF: merge_asof dont use values_for_argsort #45475
Conversation
Appears you're trying to tackle joining on nullables from which #32306 would be relevant. |
I think this should go in, as even if we don't have a test case that fails on the existing version, the version here i think is reliable. Also this gets rid of the last clearly-antipattern usage of _values_for_argsort |
@@ -1224,6 +1224,49 @@ def test_merge_on_nans(self, func, side): | |||
else: | |||
merge_asof(df, df_null, on="a") | |||
|
|||
def test_by_nullable(self, any_numeric_ea_dtype): | |||
# Note: this test passes if instead of using pd.array we use |
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.
Maybe note that the outcome of #32306 may be relevant to the expected behavior
cc @mroeschke @jreback
Original motivation here was to remove an anti-pattern usage of _values_for_argsort. In the process I found what I think should be a bug, but I haven't been able to write a test that exposes it, could use some help.