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

unexpected join behavior for datetime indexes with integers #3877

Closed
cpcloud opened this issue Jun 13, 2013 · 0 comments · Fixed by #3878
Closed

unexpected join behavior for datetime indexes with integers #3877

cpcloud opened this issue Jun 13, 2013 · 0 comments · Fixed by #3878
Assignees
Labels
Datetime Datetime data dtype Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@cpcloud
Copy link
Member

cpcloud commented Jun 13, 2013

I can't tell if this is bug or not. I think object indices should stay as object indices if they are originally mixed, but currently an index join converts something date-ish to dates...

In [9]: df = mkdf(10, 10, data_gen_f=lambda*args:randn(), r_idx_type='i', c_idx_type='dt')

In [10]: df.columns.join(df.index, how='outer').join(df.columns)
Out[10]:
<class 'pandas.tseries.index.DatetimeIndex'>
[2000-01-03 00:00:00, ..., 1970-01-01 00:00:00.000000009]
Length: 20, Freq: None, Timezone: None

this could be an edge case, but it's a problem when trying to join indexes in a general way for upcoming pandas.eval...i.e., i can't just call align.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant