polars.internals.series.DateTimeNameSpace.quarter#

DateTimeNameSpace.quarter() polars.internals.series.Series#

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