-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
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.
@jbrockmendel while refactoring, may be worth adding annotations to to_timestamp and to_period
|
||
return self._constructor(new_data) | ||
setattr(new_obj, axis_name, new_ax) |
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.
could use set_axis(..., axis=)
instead?
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.
either way works
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. @jorisvandenbossche comment, be either way is ok. merge away.
Thanks @jbrockmendel |
REF: avoid using internals methods for to_timestamp, to_period (pandas-dev#32347)
No description provided.