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 matching

  • kwargs – key-word arguments passed into the Check initializer.

Return type

Check

Returns

Check object

The behaviour is as of pandas.Series.str.match().