-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
API: Period and PeriodIndex do not support some offset aliases #13871
Comments
Period
and PeriodIndex
do not support some offset aliases
actually, let's repurpose this issue to provide a more informative error for why these are not supported. E.g. they are valid point-in-time aliases (and not just a random string), so we can check for and report better. |
Better error report is one thing, or it may be useful to support it (for I think monthly freq like |
take |
@jreback I'm changing the title back to something like the original because of subsequent comment #13871 (comment) |
and closing #4878 as duplicate |
d = pd.date_range(start="2016-01-01", periods=10, freq="BM")
print(d)
print(d.to_period())
pd.period_range(start="2016-01-01", periods=10, freq="BM")
Since |
Period
andPeriodIndex
raiseValueError
whenfreq
is any of the following strings:date_range
is fine in all cases. Also confirmed onmaster
.Possible related to #4878.
Code Sample, a copy-pastable example if possible
Output
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: