lit

pydiverse.transform.lit(
val: Any,
dtype: Dtype | type[Dtype] | None = None,
) LiteralCol[source]

Creates a pydiverse.transform expression from a python builtin type.

Usually, you can just use python builtins in expressions without wrapping them in lit. The pydiverse.transform data type of the value is then inferred. However, lit allows to set the exact pydiverse.transform type, which may be useful sometimes.