cudf.DatetimeIndex.day#

property DatetimeIndex.day#

The day of the datetime.

Examples

>>> import pandas as pd
>>> import cudf
>>> datetime_index = cudf.Index(pd.date_range("2000-01-01",
...             periods=3, freq="D"))
>>> datetime_index
DatetimeIndex(['2000-01-01', '2000-01-02', '2000-01-03'], dtype='datetime64[ns]')
>>> datetime_index.day
Int16Index([1, 2, 3], dtype='int16')