Skip to content

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

Merged
merged 2 commits into from
Apr 22, 2023
Merged

Conversation

topper-123
Copy link
Contributor

Some cleanup related to #52459. The example code causes warning when running ci/code_checks.sh, this suppresses that.

@@ -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
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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

@mroeschke mroeschke added the Docs label Apr 20, 2023
@phofl phofl added this to the 2.1 milestone Apr 22, 2023
@phofl phofl added the Deprecate Functionality to remove in pandas label Apr 22, 2023
@phofl phofl merged commit 34a1048 into pandas-dev:main Apr 22, 2023
@phofl
Copy link
Member

phofl commented Apr 22, 2023

thx @topper-123

@topper-123 topper-123 deleted the cln_dt.to_pydatetime branch April 23, 2023 08:21
Rylie-W pushed a commit to Rylie-W/pandas that referenced this pull request May 19, 2023
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants