Skip to content

Conversation

GYHHAHA
Copy link
Contributor

@GYHHAHA GYHHAHA commented Nov 30, 2020

@pep8speaks
Copy link

pep8speaks commented Nov 30, 2020

Hello @GYHHAHA! 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 2020-11-30 03:51:58 UTC

@jreback jreback added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Dec 2, 2020
@jreback jreback added this to the 1.2 milestone Dec 2, 2020
@jreback jreback added the Bug label Dec 2, 2020
@@ -274,10 +271,20 @@ def _merger(x, y):
if left_by is not None and right_by is not None:
raise ValueError("Can only group either left or right frames")
elif left_by is not None:
if isinstance(left_by, str):
Copy link
Contributor

Choose a reason for hiding this comment

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

its possible that we want to integrate these checks much more into: https://github.com/pandas-dev/pandas/blob/master/pandas/core/reshape/merge.py#L1247

but this may require some refactoring. (as a followup if you can)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will take a try.

@jreback jreback merged commit 909af8b into pandas-dev:master Dec 2, 2020
@jreback
Copy link
Contributor

jreback commented Dec 2, 2020

thanks @GYHHAHA very nice

@GYHHAHA GYHHAHA deleted the fix-extra-merge-ordered-problem branch December 2, 2020 02:41
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.

BUG: merge_ordered should raise when elements in by not exist in df BUG: merge_ordered gets unexpected left join result
3 participants