Skip to content

CLN: Change isocalendar to be a method #33533

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

Conversation

mgmarino
Copy link
Contributor

@mgmarino mgmarino commented Apr 13, 2020

For consistency with Timestamp.isocalendar, Series.dt.isocalendar and
DatetimeIndex.isocalendar should rather be methods and not attributes.

Followup of #33220, see the discussions following the merge of that PR

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We're dealing with a failing, unrelated, development build right now. Looks okay to merge once that is resolved.

@WillAyd WillAyd added the Datetime Datetime data dtype label Apr 13, 2020
@WillAyd WillAyd added this to the 1.1 milestone Apr 13, 2020
For consistency with `Timestamp.isocalendar`, this should rather be a
method.

Followup of pandas-dev#33220, see the discussions following the merge
@mgmarino mgmarino force-pushed the use-method-instead-of-attribute-for-isocalendar branch from 614e2ed to b7a89d8 Compare April 14, 2020 05:11
@mgmarino
Copy link
Contributor Author

@mroeschke dev build was fixed in #33534 by pinning CPython. PR rebased, all green.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm here as well

@mroeschke mroeschke merged commit 041dc44 into pandas-dev:master Apr 14, 2020
@mroeschke
Copy link
Member

Thanks @mgmarino for the timely and clean PRs!

CloseChoice pushed a commit to CloseChoice/pandas that referenced this pull request Apr 20, 2020
For consistency with `Timestamp.isocalendar`, this should rather be a
method.

Followup of pandas-dev#33220, see the discussions following the merge
@mgmarino mgmarino deleted the use-method-instead-of-attribute-for-isocalendar branch May 27, 2020 08:23
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.

3 participants