Write a PySpark DQ check to Ensure the employee_name column contains only alphabets. Discard entries like vivek123, vivek&, etc.
Asked in the Round 2 stage. For grading, implement the equivalent transformation as a standard-library Python function. The function receives a list of row dictionaries and returns only rows whose non-null employee_name fully matches [A-Za-z]+, preserving row order and all original fields.
def filter_valid_employee_names(rows):
Return a list of dictionaries. Empty strings, whitespace, digits, punctuation, spaces, and null values are invalid.
def filter_valid_employee_names(rows):