Skip to content

Commit

Permalink
CLN/depr: dt.to_pydatetime (#52803)
Browse files Browse the repository at this point in the history
  • Loading branch information
topper-123 committed Apr 22, 2023
1 parent e96ed76 commit 34a1048
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pandas/core/indexes/accessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ def to_pydatetime(self) -> np.ndarray:
"""
Return the data as an array of :class:`datetime.datetime` objects.
.. deprecated:: 2.1.0
The current behavior of dt.to_pydatetime is deprecated.
In a future version this will return a Series containing python
datetime objects instead of a ndarray.
Timezone information is retained if present.
.. warning::
Expand Down

0 comments on commit 34a1048

Please sign in to comment.