daft.lit

Contents

daft.lit#

daft.lit(value: object) Expression[source]#

Creates an Expression representing a column with every value set to the provided value

Example

>>> col("x") + lit(1)
Parameters:

val – value of column

Returns:

Expression representing the value provided

Return type:

Expression