tabsdata.tableframe.expr.string.ExprStringNameSpace.starts_with#
- ExprStringNameSpace.starts_with(prefix: str | Expr) Expr [source]#
Evaluate if the string start with.
- Parameters:
prefix – The suffix to search for.
Example:
>>> import tabsdata as td >>> >>> tf: td.TableFrame ... >>> >>> tf.select(td.col("a"), td.col("a") .str.starts_with("a").alias("starts_with")) >>> ┌──────┬────────────┐ │ a ┆ start_with │ │ --- ┆ --- │ │ str ┆ bool │ ╞══════╪════════════╡ │ a ┆ true │ │ ab ┆ true │ │ b ┆ false │ │ xaby ┆ false │ │ null ┆ null │ └──────┴────────────┘