daft.expressions.StringMethodAccessor.startswith
daft.expressions.StringMethodAccessor.startswith#
- StringMethodAccessor.startswith(pattern: str) daft.expressions.CallExpression [source]#
Checks whether each string starts with the given pattern in a string column
Example
>>> col("x").str.startswith("foo")
- Parameters
pattern (str) – pattern to search for
- Returns
a LOGICAL expression indicating whether each value starts with the provided pattern
- Return type
CallExpression