-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Missing Periods for some DateOffsets #5091
Comments
Running into this while testing out offsets. It looks like the frequencies that Period plays nicely with are hard-coded into |
ts = pd.date_range("1/1/2012", periods=4, freq=pd.offsets.QuarterEnd())
print(ts)
per = ts.to_period()
print(per)
ts_per = per.to_timestamp()
print(ts_per)
with with
This maybe related to #13871, that if these offsets are not accepted in the Period/PeriodIndex constructors, then maybe they should raise also in |
@natmokval did one of your recent DOC PRs address this? |
I think my PR #53477 might be related to this issue. |
There are not corresponding
Period
s for manyDateOffsets
.For example see how the freq changes:
This issue is alluded to in comment: https://github.com/pydata/pandas/blob/master/pandas/tseries/frequencies.py#L329
The text was updated successfully, but these errors were encountered: