Skip to content

BUG: Series.align(join='left') and join='right' are inverted #10665

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

Closed
gdementen opened this issue Jul 24, 2015 · 3 comments · Fixed by #10716
Closed

BUG: Series.align(join='left') and join='right' are inverted #10665

gdementen opened this issue Jul 24, 2015 · 3 comments · Fixed by #10716
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Milestone

Comments

@gdementen
Copy link
Contributor

join='left' does a right join and 'right' does a left join

See the notebook for details
https://nbviewer.jupyter.org/gist/gdementen/fa4d388993ee981b5698

@gdementen
Copy link
Contributor Author

btw, this is with pandas 0.16.2

@gdementen gdementen changed the title Series.align(join='left') and join='right' are inverted BUG/Series.align(join='left') and join='right' are inverted Jul 24, 2015
@gdementen gdementen changed the title BUG/Series.align(join='left') and join='right' are inverted BUG: Series.align(join='left') and join='right' are inverted Jul 24, 2015
@gdementen
Copy link
Contributor Author

probably related to (possibly a dupe of, I am not sure) #10147.
The strange thing, is that for DataFrames, align seems to work correctly.

@sinhrks
Copy link
Member

sinhrks commented Jul 29, 2015

Thanks. Looks to be caused by the following lines.

When Series with MultiIndex is on left side, how=left and right must be flipped also. PR is appreciated!

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 a pull request may close this issue.

3 participants