Skip to content

BUG: fix PeriodIndex join with DatetimeIndex stack overflow #5101

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 4 commits into from
Oct 4, 2013
Merged

BUG: fix PeriodIndex join with DatetimeIndex stack overflow #5101

merged 4 commits into from
Oct 4, 2013

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Oct 3, 2013

closes #3899.

@ghost ghost assigned cpcloud Oct 3, 2013
@cpcloud
Copy link
Member Author

cpcloud commented Oct 3, 2013

@jreback @jtratner comments? this will pass ... just rebased it .... then going to merge

'can only call with other PeriodIndex-ed '
'objects'):
for join in joins:
df.columns.join(s.index, how=join)
Copy link
Member Author

Choose a reason for hiding this comment

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

should swap the loop and with here

return self.values.copy()
else: # pragma: no cover
raise ValueError('Cannot cast PeriodIndex to dtype %s' % dtype)
return Index(self.values.copy(), dtype)
Copy link
Contributor

Choose a reason for hiding this comment

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

why copy instead of view here? I know that's what was there before, just strange.

Copy link
Member Author

Choose a reason for hiding this comment

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

was just about to ask that actually...@jreback?

@jtratner
Copy link
Contributor

jtratner commented Oct 3, 2013

looks good to me

@jreback
Copy link
Contributor

jreback commented Oct 3, 2013

ok too

cpcloud added a commit that referenced this pull request Oct 4, 2013
…overflow

BUG: fix PeriodIndex join with DatetimeIndex stack overflow
@cpcloud cpcloud merged commit 3722487 into pandas-dev:master Oct 4, 2013
@cpcloud cpcloud deleted the fix-period-datetime-join-stack-overflow branch October 4, 2013 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

recursion limit reached when joining period and datetimeindexes
3 participants