Skip to content
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

BUG: Fix merging non-indexes causes Index dtype promotion in when keys are missing #28436

Closed
wants to merge 1 commit into from

Conversation

dworvos
Copy link
Contributor

@dworvos dworvos commented Sep 13, 2019

... from left or right side. (GH28220)
Also closes GH24897, GH24212, and GH17257

Probably requires a bit more cleanup and reduction of spaghetti... Not in love with the the solution (as it's quite similar to using both indexes) and requires extension test case changes, but hoping to get some comments and feedback on making it better.

@gfyoung gfyoung added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Sep 15, 2019
@jbrockmendel
Copy link
Member

Looks like a MultiIndex is getting mixed up with a RangeIndex. Did this pass locally?

@dworvos
Copy link
Contributor Author

dworvos commented Sep 17, 2019

I ran the merging unit tests in test_merge. I'll spend some time to fix the others

@dworvos dworvos force-pushed the fix_merge_non_index branch from 59b8977 to a0a95c2 Compare September 28, 2019 20:45
@pep8speaks
Copy link

pep8speaks commented Sep 28, 2019

Hello @dworvos! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-11-09 03:05:47 UTC

@dworvos dworvos force-pushed the fix_merge_non_index branch 3 times, most recently from 2de0f23 to 23b37c3 Compare September 28, 2019 21:54
@jreback
Copy link
Contributor

jreback commented Oct 18, 2019

can you merge master and will have a look

@dworvos dworvos force-pushed the fix_merge_non_index branch 2 times, most recently from 3e1b7f0 to 730c97c Compare October 20, 2019 20:58
@dworvos
Copy link
Contributor Author

dworvos commented Oct 20, 2019

I've rebased with upstream/master. Thanks!

@dworvos
Copy link
Contributor Author

dworvos commented Oct 28, 2019

Just checking in to see if I did what you asked of correctly.

Cheers

@jbrockmendel
Copy link
Member

@dworvos needs another rebase

…s are missing from left or right side. (GH28220)

Also closes GH24897, GH24212, and GH17257
@dworvos dworvos force-pushed the fix_merge_non_index branch from 730c97c to ec70eee Compare November 9, 2019 03:05
@jreback
Copy link
Contributor

jreback commented Jan 1, 2020

@dworvos i think we'd take this, but needs some work if you want to continue, pls ping

@jreback jreback closed this Jan 1, 2020
@dworvos
Copy link
Contributor Author

dworvos commented Jan 3, 2020

Sure, I can take a look, but I'd like some feedback on what needs to be done rather than just constantly rebasing and getting nowhere?

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

Successfully merging this pull request may close these issues.

pd.merge regression when doing a left-join with missing data on the right. Result has a Float64Index
5 participants