-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN/depr: dt.to_pydatetime #52803
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
CLN/depr: dt.to_pydatetime #52803
Conversation
pandas/core/indexes/accessors.py
Outdated
@@ -328,19 +334,19 @@ def to_pydatetime(self) -> np.ndarray: | |||
1 2018-03-11 | |||
dtype: datetime64[ns] | |||
|
|||
>>> s.dt.to_pydatetime() | |||
>>> s.dt.to_pydatetime() # doctest: +SKIP |
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.
I think I would prefer to keep these examples running, so that when we change the behavior we are reminded to change these examples
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.
Ok, I can see that point. Keep the deprecation notice?
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.
Keep the deprecation notice?
Yes definitely
thx @topper-123 |
Some cleanup related to #52459. The example code causes warning when running
ci/code_checks.sh
, this suppresses that.