We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8688ecf commit bf84851Copy full SHA for bf84851
pandas/core/indexes/accessors.py
@@ -304,6 +304,12 @@ def to_pydatetime(self) -> np.ndarray:
304
"""
305
Return the data as an array of :class:`datetime.datetime` objects.
306
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
313
Timezone information is retained if present.
314
315
.. warning::
0 commit comments