-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Tick DateOffset Normalize whatsnew entry has an error #21564
Comments
The second bulletpoint is exactly the point of #21427. Me messing up the whatsnew is entirely plausible. Happy to fix, but will need some guidance, as I clearly don't understand [something]. |
@TomAugspurger considering that |
If that was the intent, then the We also don't need the
|
Repeating my comments from the other issue: In any case, all occurences of this in the docs should be fixed. But, if this change is needed, it would also be nice if there is a clear alternative provided in the documentation / deprecation message. |
So this is the use case in the docs (from http://pandas.pydata.org/pandas-docs/stable/timeseries.html#dateoffset-objects):
What is the alternative? |
@jorisvandenbossche good catch, I missed that point in the docs. The alternative is:
|
OK, that's a good alternative (only for the Hour example, the normalize needs to go after the apply, I think?). |
I'll try to get this started over the weekend. |
Looking at timeseries.rst the only example with It may also be worth resolving #20633 before spending too much time re-writing these docs. |
is this still open? |
Yes, I think so. |
@TomAugspurger still open? if it was really a blocker for 0.24.0, then I'd imagine it must have been fixed |
Last comment suggests the doc issue has been fixed and the remaining question was about whether to do something as a deprecation or not. Since that was from 2019, i think that ship has sailed. Is this closable? |
http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#tick-dateoffset-normalize-restrictions
api.rst
and update the references totseries.offsets.Day
, etc. ([DOC]: To remove extra `` to match :class: rendering requirements #21586)tic = pd.offsets.Hour(n=2, normalize=True)
throws an exception.The text was updated successfully, but these errors were encountered: