Skip to content

REGR: Outer merge failing with integer and NaN keys #43553

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

Merged
merged 3 commits into from
Sep 14, 2021

Conversation

debnathshoham
Copy link
Member

@simonjayhawkins simonjayhawkins added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Sep 13, 2021
@simonjayhawkins simonjayhawkins added this to the 1.3.4 milestone Sep 13, 2021
@jreback jreback added the Dtype Conversions Unexpected or buggy dtype conversions label Sep 13, 2021
@@ -2571,3 +2571,18 @@ def test_mergeerror_on_left_index_mismatched_dtypes():
df_2 = DataFrame(data=["X"], columns=["C"], index=[999])
with pytest.raises(MergeError, match="Can only pass argument"):
merge(df_1, df_2, on=["C"], left_index=True)


def test_merge_outer_with_NaN():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you parameterize with Int64 as well

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we switch left and right too? Changing lvals to rvals above would have fixed the issue but caused the inverse to fail

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done and done

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. @phofl over to you

@phofl phofl merged commit 95a3b07 into pandas-dev:master Sep 14, 2021
@phofl
Copy link
Member

phofl commented Sep 14, 2021

thx @debnathshoham

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REGR: outer join with integer key and NaNs failing
4 participants