Path: blob/master/Faker/Faker_Anonymize_Personal_Names_from_dataframe.ipynb
2973 views
Kernel: Python 3
Faker - Anonymize Personal Names from dataframe
Tags: #faker #operations #snippet #database #dataframe
Author: Florent Ravenel
Last update: 2023-04-12 (Created: 2022-09-09)
Description: This notebook provides a way to anonymize personal names from a dataframe using the Faker library.
Input
Import libraries
In [ ]:
Setup Data
In [ ]:
Setup Faker
Use faker.Faker() to create and initialize a faker generator, which can generate data by accessing properties named after the type of data you want.
In [ ]:
Model
Fake names
Through use of the .unique
property on the generator, you can guarantee that any generated values are unique for this specific instance.
In [ ]:
Output
Display result
In [ ]: