modin.pandas.DatetimeIndex.to_pydatetime¶
- DatetimeIndex.to_pydatetime() ndarray [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/datetime_index.py#L1485-L1501)¶
Return a ndarray of
datetime.datetime
objects.- Return type:
numpy.ndarray
Examples
>>> idx = pd.date_range('2018-02-27', periods=3) >>> idx.to_pydatetime() array([datetime.datetime(2018, 2, 27, 0, 0), datetime.datetime(2018, 2, 28, 0, 0), datetime.datetime(2018, 3, 1, 0, 0)], dtype=object)