modin.pandas.DatetimeIndex.dayofyear

property DatetimeIndex.dayofyear: Index[source]

The ordinal day of the year.

Return type:

An Index Containing integers indicating the ordinal day of the year.

Examples

>>> idx = pd.DatetimeIndex(["1/1/2020 10:00:00+00:00",
...                         "2/1/2020 11:00:00+00:00"])
>>> idx.dayofyear
Index([1, 32], dtype='int64')
Copy