daft.Expression.str.split

daft.Expression.str.split#

Expression.str.split(pattern: str | daft.expressions.expressions.Expression) Expression[source]#

Splits each string on the given pattern, into one or more strings.

Example

>>> col("x").str.split(",")
>>> col("x").str.split(col("pattern"))
Parameters:

pattern – The pattern on which each string should be split, or a column to pick such patterns from.

Returns:

A List[Utf8] expression containing the string splits for each string in the column.

Return type:

Expression