polars.internals.expr.ExprDateTimeNameSpace.ordinal_day

ExprDateTimeNameSpace.ordinal_day() polars.internals.expr.Expr

Extract ordinal day from underlying Date representation. Can be performed on Date and Datetime.

Returns the day of year starting from 1. The return value ranges from 1 to 366. (The last day of year differs by years.)

Returns
Day as UInt32