def _scrub_participant_table(path_to_data):
path = os.path.join(path_to_data, "<STR_LIT>")<EOL>with open_for_csv(path, "<STR_LIT:r>") as input, open("<STR_LIT>".format(path), "<STR_LIT:w>") as output:<EOL><INDENT>reader = csv.reader(input)<EOL>writer = csv.writer(output)<EOL>headers = next(reader)<EOL>writer.writerow(headers)<EOL>for i, row in enumerate(reader):<EOL><INDENT>row[headers.index("<STR_LIT>")] = row[headers.index("<STR_LIT:id>")]<EOL>row[headers.index("<STR_LIT>")] = "<STR_LIT>".format(<EOL>row[headers.index("<STR_LIT:id>")], row[headers.index("<STR_LIT>")]<EOL>)<EOL>writer.writerow(row)<EOL><DEDENT>os.rename("<STR_LIT>".format(path), path)<EOL><DEDENT>
Scrub PII from the given participant table.