Python, Programming, Data Science, Artificial Intelligence, Machine Learning.
'phone'] # Anonymize the specified columns for column in columns_to_anonymize: data[column] = data[column].apply(lambda x: faker.name() if column == 'name' else faker.email() if column == 'email' else faker.phone_number()) # Save the anonymized dataset data.to_csv('anonymized_dataset.csv',