polars.internals.expr.ExprDateTimeNameSpace.quarter#

ExprDateTimeNameSpace.quarter() polars.internals.expr.Expr#

Extract quarter from underlying Date representation.

Can be performed on Date and Datetime.

Returns the quarter ranging from 1 to 4.

Returns
Quarter as UInt32