Skip to content

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

Merged
merged 6 commits into from
May 27, 2020

Conversation

mgmarino
Copy link
Contributor

@mgmarino mgmarino commented May 26, 2020

This is a followup on #33595, (specifically here and here), where it was noted that DatetimeIndex.isocalendar should set the index of the
returned dataframe.

@mgmarino mgmarino marked this pull request as ready for review May 26, 2020 18:37
Copy link
Contributor

@jreback jreback left a 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 jreback added the Datetime Datetime data dtype label May 26, 2020
@jreback jreback added this to the 1.1 milestone May 26, 2020
@mgmarino
Copy link
Contributor Author

@jreback, thanks, what's new entry updated. Back to green.

@jreback jreback merged commit 98e495a into pandas-dev:master May 27, 2020
@jreback
Copy link
Contributor

jreback commented May 27, 2020

thanks @mgmarino

@jreback
Copy link
Contributor

jreback commented May 27, 2020

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.

@mgmarino
Copy link
Contributor Author

I am very happy to expand the docs on this, but this is already a blurb on this right after this table:

https://github.com/pandas-dev/pandas/blame/master/doc/source/user_guide/timeseries.rst#L789

@jreback
Copy link
Contributor

jreback commented May 27, 2020

ahh i c, yep forgot about that. lgtm.

@mgmarino mgmarino deleted the set-index-of-returned-dataframe branch October 29, 2021 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants