pandera.api.checks.Check.str_matches#

classmethod Check.str_matches(pattern, **kwargs)[source]#

Ensure that string values match a regular expression.

Parameters
  • pattern (Union[str, Pattern]) – Regular expression pattern to use for matching

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

Return type

Check