daft.expressions.expressions.ExpressionDatetimeNamespace.day_of_week
daft.expressions.expressions.ExpressionDatetimeNamespace.day_of_week#
- ExpressionDatetimeNamespace.day_of_week() daft.expressions.expressions.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