daft.Expression.dt.hour

daft.Expression.dt.hour#

Expression.dt.hour() Expression[source]#

Retrieves the day for a datetime column

Example

>>> col("x").dt.day()
Returns:

a UInt32 expression with just the day extracted from a datetime column

Return type:

Expression