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: preserve join keys dtype #13170

Closed
wants to merge 2 commits into from
Closed

Conversation

jreback
Copy link
Contributor

@jreback jreback commented May 13, 2016

@jreback jreback added Bug Indexing Related to indexing on series/frames, not to indexes themselves Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels May 13, 2016
@jreback jreback added this to the 0.18.2 milestone May 13, 2016

Return an Index of same shape as self and whose corresponding
entries are from self where cond is True and otherwise are from
other.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sinhrks I wish that could get some more uniformity w.r.t. Periods. I realize that there is a bug here with other which I fixed in tseries/base.py/.where, end up duplicating code here.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its more complicated. I needed prelim logic different fro dti & period, so would have to have a helper function. We do this a fair amount, e.g. process for timezones, run a function, then reverse. Its ok the way we do it now, but it does duplicate some code.

@jreback jreback force-pushed the merge2 branch 5 times, most recently from 79f3b9d to 3c535fa Compare May 14, 2016 12:48
@jreback jreback force-pushed the merge2 branch 4 times, most recently from 05d045a to 10d52f6 Compare May 24, 2016 23:11
@jreback
Copy link
Contributor Author

jreback commented May 24, 2016

ok, removed the dep on my other PR.

@sinhrks @jorisvandenbossche @TomAugspurger comments?

@jreback jreback force-pushed the merge2 branch 2 times, most recently from d864f2c to 971ed21 Compare May 26, 2016 16:16
@jreback
Copy link
Contributor Author

jreback commented May 26, 2016

@sinhrks any comments on this?

Mike Kelly and others added 2 commits May 27, 2016 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame outer merge changes key columns from int64 to float64
2 participants