Skip to content

BUG: PeriodIndex + offset incorrect #22998

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
jbrockmendel opened this issue Oct 4, 2018 · 0 comments · Fixed by #23031
Closed

BUG: PeriodIndex + offset incorrect #22998

jbrockmendel opened this issue Oct 4, 2018 · 0 comments · Fixed by #23031
Labels
Milestone

Comments

@jbrockmendel
Copy link
Member

Troubleshooting based on tests.indexes.period.test_tools.TestPeriodIndexConversion.test_to_timestamp_pi_combined

idx = PeriodIndex(start='2011', periods=2, freq='1D1H', name='idx')

>>> idx + 1
PeriodIndex(['2011-01-02 01:00', '2011-01-03 02:00'], dtype='period[25H]', name=u'idx', freq='25H')

>>> idx + idx.freq
PeriodIndex(['2011-01-27 01:00', '2011-01-28 02:00'], dtype='period[25H]', name=u'idx', freq='25H')

idx + idx.freq should match idx + 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants