daft.expressions.expressions.ExpressionStringNamespace.startswith
daft.expressions.expressions.ExpressionStringNamespace.startswith#
- ExpressionStringNamespace.startswith(prefix: str) daft.expressions.expressions.Expression [source]#
Checks whether each string starts with the given pattern in a string column
Example
>>> col("x").str.startswith(col("foo"))
- Parameters
pattern – pattern to search for as a literal string, or as a column to pick values from
- Returns
a Boolean expression indicating whether each value starts with the provided pattern
- Return type