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: unexpected merge_ordered results caused by wrongly groupby #38170

Merged
merged 5 commits into from
Dec 2, 2020
Merged

BUG: unexpected merge_ordered results caused by wrongly groupby #38170

merged 5 commits into from
Dec 2, 2020

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
3 participants