-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
BUG: pd.period_range ignores multiple of start frequency.
#47598
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
Conversation
341da30 to
18cf834
Compare
phofl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this broke stuff
|
Hopefully that is fixed now. @phofl However, during testing I found this behaviour odd: In [1]: import pandas as pd
In [2]: p = pd.Period("2020", freq="Y")
In [3]: pd.Period(p, freq="3Y")
Out[3]: Period('2020', 'A-DEC')
In [4]: pd.Period(p, freq="3D")
Out[4]: Period('2020-12-31', '3D')The |
|
This looks wrong: pandas/pandas/_libs/tslibs/period.pyx Lines 2554 to 2561 in d9dd128
Checking the |
|
This might be deliberate, are there tests covering this? |
I would be very surprised by this, so let's see: #47613 |
|
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
|
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen. |
Fixes: #47465
pd.period_rangeignores multiple ofstartfrequency #47465doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.