Skip to content

Commit bf84851

Browse files
topper-123im-vinicius
authored and
im-vinicius
committed
CLN/depr: dt.to_pydatetime (pandas-dev#52803)
1 parent 8688ecf commit bf84851

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/core/indexes/accessors.py

+6
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ def to_pydatetime(self) -> np.ndarray:
304304
"""
305305
Return the data as an array of :class:`datetime.datetime` objects.
306306
307+
.. deprecated:: 2.1.0
308+
309+
The current behavior of dt.to_pydatetime is deprecated.
310+
In a future version this will return a Series containing python
311+
datetime objects instead of a ndarray.
312+
307313
Timezone information is retained if present.
308314
309315
.. warning::

0 commit comments

Comments
 (0)