pandera.Check.str_contains

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

Ensure that a pattern can be found within each row.

Parameters
  • pattern (str) – Regular expression pattern to use for searching

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

Return type

Check

Returns

Check object

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