Skip to main content
Version: 0.9.1

Expr.str.ends_with

def ends_with(suffix: str | Expr) -> Expr

Categories: string

Evaluate if the string ends with.

Parameters

parameter
suffix

The suffix to search for.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf.select(td.col("a"), td.col("a").str.ends_with("b").alias("ends_with"))
>>>
┌──────┬───────────┐
│ a ┆ ends_with │
------
strbool
╞══════╪═══════════╡
│ a ┆ false │
│ ab ┆ true │
│ b ┆ true │
│ xaby ┆ false │
│ null ┆ null │
└──────┴───────────┘