modin.pandas.DatetimeIndex.date

property DatetimeIndex.date: Index[source]

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