-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Set index of returned dataframe in DatetimeIndex.isocalendar #34392
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
ENH: Set index of returned dataframe in DatetimeIndex.isocalendar #34392
Conversation
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.
lgtm. can you add this PR number to the existing whatsnew note (for isocalendar change), and ping on green.
@jreback, thanks, what's new entry updated. Back to green. |
thanks @mgmarino |
btw I think we should a mention of using isocalendar in the docs proper, maybe around here: https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#time-date-components if you can do a PR would be great. |
I am very happy to expand the docs on this, but this is already a blurb on this right after this table: |
ahh i c, yep forgot about that. lgtm. |
This is a followup on #33595, (specifically here and here), where it was noted that
DatetimeIndex.isocalendar
should set the index of thereturned dataframe.