We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
numfocus
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent e96ed76 commit 34a1048Copy full SHA for 34a1048
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