openclean.function.eval.regex module

Predicates that test whether a given value (or list of values) match a regular expression.

class openclean.function.eval.regex.IsMatch(columns, pattern, fullmatch=False, as_string=True, for_all=True)

Bases: openclean.function.eval.base.Eval

Boolean predicate that tests whether a given value or list of values from a data frame row match a regular expression. For value lists the for all flag determines whether all values have to match the expression or at least one of them.

class openclean.function.eval.regex.IsNotMatch(columns, pattern, fullmatch=False, as_string=True, for_all=True)

Bases: openclean.function.eval.base.Eval

Boolean predicate that tests whether a given value or list of values from a data frame row don’t match a regular expression. For value lists the for all flag determines whether all values have to match the expression or at least one of them.