Skip to content

REF: avoid using internals methods for to_timestamp, to_period #32347

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 4 commits into from
Mar 4, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jbrockmendel jbrockmendel added Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code labels Feb 29, 2020
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

@jbrockmendel while refactoring, may be worth adding annotations to to_timestamp and to_period

@simonjayhawkins simonjayhawkins added this to the 1.1 milestone Mar 2, 2020

return self._constructor(new_data)
setattr(new_obj, axis_name, new_ax)
Copy link
Member

Choose a reason for hiding this comment

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

could use set_axis(..., axis=) instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

either way works

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. @jorisvandenbossche comment, be either way is ok. merge away.

@WillAyd WillAyd merged commit dcd86e5 into pandas-dev:master Mar 4, 2020
@WillAyd
Copy link
Member

WillAyd commented Mar 4, 2020

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the set_axis2 branch March 4, 2020 01:04
sthagen added a commit to sthagen/pandas-dev-pandas that referenced this pull request Mar 4, 2020
REF: avoid using internals methods for to_timestamp, to_period (pandas-dev#32347)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants