daft.expressions.expressions.ExpressionDatetimeNamespace.month#

ExpressionDatetimeNamespace.month() daft.expressions.expressions.Expression[source]#

Retrieves the month for a datetime column

Example

>>> col("x").dt.month()
Returns

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

Return type

Expression