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

modin.pandas.Series.dt.dayofyear

Series.dt.dayofyear[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/modin/pandas/series_utils.py#L627-L629)

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
Language: English