pandera.checks.Check.str_matches#
- classmethod Check.str_matches(cls, pattern, **kwargs)[source]#
Ensure that string values match a regular expression.
- Parameters
pattern (
str
) – Regular expression pattern to use for matchingkwargs – key-word arguments passed into the Check initializer.
- Return type
- Returns
Check
object
The behaviour is as of
pandas.Series.str.match()
.