modin.pandas.DatetimeIndex.date

property DatetimeIndex.date: Index[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/datetime_index.py#L432-L449)

Returns the date part of Timestamps without time and timezone information.

Returns:

  • Returns an Index with the date part of Timestamps. Note this is different

  • from native pandas which returns a python array.

Examples

>>> idx = pd.DatetimeIndex(["1/1/2020 10:00:00+00:00",
...                         "2/1/2020 11:00:00+00:00"])
>>> idx.date
Index([2020-01-01, 2020-02-01], dtype='object')
Copy
Language: English