class_docstr: Accessor object for datetimelike properties of the Series values.
  
  Examples
  --------
  >>> seconds_series = pd.Series(pd.date_range("2000-01-01", periods=3, freq="s"))
  >>> seconds_series
  0   2000-01-01 00:00:00
  1   2000-01-01 00:00:01
  2   2000-01-01 00:00:02
  dtype: datetime64[ns]
  >>> seconds_series.dt.second
  0    0
  1    1
  2    2
  dtype: int32
  
  >>> hours_series = pd.Series(pd.date_range("2000-01-01", periods=3, freq="h"))
  >>> hours_series
  0   2000-01-01 00:00:00
  1   2000-01-01 01:00:00
  2   2000-01-01 02:00:00
  dtype: datetime64[ns]
  >>> hours_series.dt.hour
  0    0
  1    1
  2    2
  dtype: int32
  
  >>> quarters_series = pd.Series(pd.date_range("2000-01-01", periods=3, freq="QE"))
  >>> quarters_series
  0   2000-03-31
  1   2000-06-30
  2   2000-09-30
  dtype: datetime64[ns]
  >>> quarters_series.dt.quarter
  0    1
  1    2
  2    3
  dtype: int32
  
  Returns a Series indexed like the original Series.
  Raises TypeError if the Series does not contain datetimelike values.
docstr: 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::
  
     Python's datetime uses microsecond resolution, which is lower than
     pandas (nanosecond). The values are truncated.
  
  Returns
  -------
  numpy.ndarray
      Object dtype array containing native Python datetime objects.
  
  See Also
  --------
  datetime.datetime : Standard library value for a datetime.
  
  Examples
  --------
  >>> s = pd.Series(pd.date_range('20180310', periods=2))
  >>> s
  0   2018-03-10
  1   2018-03-11
  dtype: datetime64[ns]
  
  >>> s.dt.to_pydatetime()
  array([datetime.datetime(2018, 3, 10, 0, 0),
         datetime.datetime(2018, 3, 11, 0, 0)], dtype=object)
  
  pandas' nanosecond precision is truncated to microseconds.
  
  >>> s = pd.Series(pd.date_range('20180310', periods=2, freq='ns'))
  >>> s
  0   2018-03-10 00:00:00.000000000
  1   2018-03-10 00:00:00.000000001
  dtype: datetime64[ns]
  
  >>> s.dt.to_pydatetime()
  array([datetime.datetime(2018, 3, 10, 0, 0),
         datetime.datetime(2018, 3, 10, 0, 0)], dtype=object)
docstr_tok: ["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",":",":","Python","'s","datetime","uses","microsecond","resolution",",","which","is","lower","than","pandas","(","nanosecond",")",".","The","values","are","truncated",".","Returns","--","--","--","-","numpy.ndarray","Object","dtype","array","containing","native","Python","datetime","objects",".","See","Also","--","--","--","--","datetime.datetime",":","Standard","library","value","for","a","datetime",".","Examples","--","--","--","--",">",">",">","s","=","pd.Series","(","pd.date_range","(","'20180310","'",",","periods=2",")",")",">",">",">","s","0","2018-03-10","1","2018-03-11","dtype",":","datetime64","[","ns","]",">",">",">","s.dt.to_pydatetime","(",")","array","(","[","datetime.datetime","(","2018",",","3",",","10",",","0",",","0",")",",","datetime.datetime","(","2018",",","3",",","11",",","0",",","0",")","]",",","dtype=object",")","pandas","'","nanosecond","precision","is","truncated","to","microseconds",".",">",">",">","s","=","pd.Series","(","pd.date_range","(","'20180310","'",",","periods=2",",","freq='ns","'",")",")",">",">",">","s","0","2018-03-10","00:00:00.000000000","1","2018-03-10","00:00:00.000000001","dtype",":","datetime64","[","ns","]",">",">",">","s.dt.to_pydatetime","(",")","array","(","[","datetime.datetime","(","2018",",","3",",","10",",","0",",","0",")",",","datetime.datetime","(","2018",",","3",",","10",",","0",",","0",")","]",",","dtype=object",")"]
code: 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::
  
         Python's datetime uses microsecond resolution, which is lower than
         pandas (nanosecond). The values are truncated.
  
      Returns
      -------
      numpy.ndarray
          Object dtype array containing native Python datetime objects.
  
      See Also
      --------
      datetime.datetime : Standard library value for a datetime.
  
      Examples
      --------
      >>> s = pd.Series(pd.date_range('20180310', periods=2))
      >>> s
      0   2018-03-10
      1   2018-03-11
      dtype: datetime64[ns]
  
      >>> s.dt.to_pydatetime()
      array([datetime.datetime(2018, 3, 10, 0, 0),
             datetime.datetime(2018, 3, 11, 0, 0)], dtype=object)
  
      pandas' nanosecond precision is truncated to microseconds.
  
      >>> s = pd.Series(pd.date_range('20180310', periods=2, freq='ns'))
      >>> s
      0   2018-03-10 00:00:00.000000000
      1   2018-03-10 00:00:00.000000001
      dtype: datetime64[ns]
  
      >>> s.dt.to_pydatetime()
      array([datetime.datetime(2018, 3, 10, 0, 0),
             datetime.datetime(2018, 3, 10, 0, 0)], dtype=object)
      """
      # GH#20306
      warnings.warn(
          f"The behavior of {type(self).__name__}.to_pydatetime is deprecated, "
          "in a future version this will return a Series containing python "
          "datetime objects instead of an ndarray. To retain the old behavior, "
          "call `np.array` on the result",
          FutureWarning,
          stacklevel=find_stack_level(),
      )
      return self._get_values().to_pydatetime()
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, cast
  import warnings
  import numpy
  from pandas._libs import lib
  from pandas.util._exceptions import find_stack_level
  from pandas.core.dtypes.common import is_integer_dtype, is_list_like
  from pandas.core.dtypes.dtypes import ArrowDtype, CategoricalDtype, DatetimeTZDtype, PeriodDtype
  from pandas.core.dtypes.generic import ABCSeries
  from pandas.core.accessor import PandasDelegate, delegate_names
  from pandas.core.arrays import DatetimeArray, PeriodArray, TimedeltaArray
  from pandas.core.arrays.arrow.array import ArrowExtensionArray
  from pandas.core.base import NoNewAttributesMixin, PandasObject
  from pandas.core.indexes.datetimes import DatetimeIndex
  from pandas.core.indexes.timedeltas import TimedeltaIndex
label_desc: Use image node_id 1 for calling the DatetimeProperties obj's underlying member method code with example usage: obj.to_pydatetime() and returns: self