bigframes.pandas.api.typing.DatetimeMethods.dayofyear#

property DatetimeMethods.dayofyear: Series#

The ordinal day of the year.

Examples:

>>> import bigframes.pandas as bpd
>>> s = bpd.Series(
...     pd.date_range('2016-12-28', '2017-01-03', freq='D').to_series()
... )
>>> s.dt.dayofyear
2016-12-28 00:00:00    363
2016-12-29 00:00:00    364
2016-12-30 00:00:00    365
2016-12-31 00:00:00    366
2017-01-01 00:00:00      1
2017-01-02 00:00:00      2
2017-01-03 00:00:00      3
dtype: Int64
Returns:

Containing integers indicating the day number.

Return type:

Series