pandera.checks.Check.str_contains¶
-
classmethod
Check.
str_contains
(cls, pattern, **kwargs)[source]¶ Ensure that a pattern can be found within each row.
- Parameters
pattern (
str
) – Regular expression pattern to use for searchingkwargs – key-word arguments passed into the Check initializer.
- Return type
- Returns
Check
object
The behaviour is as of
pandas.Series.str.contains()
.