daft.expressions.DatetimeMethodAccessor.day_of_week#

DatetimeMethodAccessor.day_of_week() daft.expressions.CallExpression[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

an INTEGER expression with just the day_of_week extracted from a datetime column

Return type

CallExpression