daft.Expression.dt.day_of_week#
- Expression.dt.day_of_week() Expression [source]#
Retrieves the day of the week for a datetime column, starting at 0 for Monday and ending at 6 for Sunday
Example
>>> col("x").dt.day_of_week()
- Returns:
a UInt32 expression with just the day_of_week extracted from a datetime column
- Return type:
Expression