polars.internals.series.StringNameSpace.contains

StringNameSpace.contains(pattern: str) polars.internals.series.Series

Check if strings in Series contain regex pattern.

Parameters
pattern

A valid regex pattern.

Returns
Boolean mask