polars.internals.expr.ExprDateTimeNameSpace.month

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

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

Returns the month number starting from 1. The return value ranges from 1 to 12.

Returns
Month as UInt32