diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py index 4f529b71c867f..f86728ad8b686 100644 --- a/pandas/core/indexes/accessors.py +++ b/pandas/core/indexes/accessors.py @@ -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::