From 63893dc037851d16b3a8f1f667133a19d303a931 Mon Sep 17 00:00:00 2001 From: Dawid Makar Date: Wed, 27 Sep 2023 02:40:31 +0200 Subject: [PATCH] Automatic refactoring. Refactoring step id: UUID('eab85416-0e69-4402-b257-596ca65544c7') --- pandas/core/indexes/accessors.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py index f86728ad8b686..bb6ce2a49701f 100644 --- a/pandas/core/indexes/accessors.py +++ b/pandas/core/indexes/accessors.py @@ -304,12 +304,6 @@ 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:: @@ -607,4 +601,4 @@ def __new__(cls, data: Series): elif isinstance(data.dtype, PeriodDtype): return PeriodProperties(data, orig) - raise AttributeError("Can only use .dt accessor with datetimelike values") + raise AttributeError("Can only use .dt accessor with datetimelike values") \ No newline at end of file