polars.internals.series.DateTimeNameSpace.hour

DateTimeNameSpace.hour() polars.internals.series.Series

Extract the hour from the underlying DateTime representation. Can be performed on Datetime.

Returns the hour number from 0 to 23.

Returns
Hour as UInt32