polars.internals.expr.ExprDateTimeNameSpace.day

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

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

Returns the day of month starting from 1. The return value ranges from 1 to 31. (The last day of month differs by months.)

Returns
Day as UInt32