Skip to content

REF: avoid need for get_join_target in join_non_unique #43217

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 5 commits into from
Sep 2, 2021

Conversation

jbrockmendel
Copy link
Member

Avoid a use of get_join_target to move towards allowing arbitrary EA-backed Index

@jreback jreback added Refactor Internal refactoring of code Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Aug 31, 2021
@jreback jreback added this to the 1.4 milestone Aug 31, 2021
@jreback
Copy link
Contributor

jreback commented Aug 31, 2021

can you rebase

@jbrockmendel
Copy link
Member Author

rebased + green

join_array = np.asarray(lvalues.take(left_idx))
mask = left_idx == -1
np.putmask(join_array, mask, rvalues.take(right_idx))
# TODO: just use Index.putmask once GH#43212 is fixed
Copy link
Contributor

Choose a reason for hiding this comment

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

is this changable? as merged the PR around that

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch, will update

@jreback jreback merged commit 7e8331b into pandas-dev:master Sep 2, 2021
@jbrockmendel jbrockmendel deleted the ref-join branch September 3, 2021 01:20
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants