def no_bad_characters(series):
def test(x):<EOL><INDENT>if bad_chars.search(x) is None:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return series.astype(str).apply(test)<EOL>
Validator