pandera.core.checks.Check.str_contains#

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

Ensure that a pattern can be found within each row.

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

  • kwargs (Dict[str, Any]) – key-word arguments passed into the Check initializer.

  • kwargs – arguments forwarded to the Check constructor.

Return type

Check