dt.day_of_year

ColExpr.dt.day_of_year() ColExpr[source]

The number of days since the beginning of the year.

This is one-based, so it returns 1 for the 1st of January.