daft.Expression.str.left

daft.Expression.str.left#

Expression.str.left(nchars: int | daft.expressions.expressions.Expression) Expression[source]#

Gets the n (from nchars) left-most characters of each string

Example

>>> col("x").str.left(3)
Returns:

a String expression which is the n left-most characters of self

Return type:

Expression