You are viewing documentation about an older version (1.21.0). View latest version

modin.pandas.Series.dt.dayofyear¶

Series.dt.dayofyear[source]¶

The ordinal day of the year.

Examples

>>> s = pd.Series(pd.to_datetime(["1/1/2020", "2/1/2020"]))
>>> s
0   2020-01-01
1   2020-02-01
dtype: datetime64[ns]
>>> s.dt.dayofyear
0     1
1    32
dtype: int16
Copy