polars.Series.str.starts_with# Series.str.starts_with(prefix: str | Expr) → Series[source]# Check if string values start with a substring. Parameters: prefixPrefix substring. See also containsCheck if the string contains a substring that matches a pattern. ends_withCheck if string values end with a substring. Examples >>> s = pl.Series("fruits", ["apple", "mango", None]) >>> s.str.starts_with("app") shape: (3,) Series: 'fruits' [bool] [ true false null ]