pandera.api.checks.Check.str_matches

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

Ensure that strings start with regular expression match.

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

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

Return type:

Check