Aindo Anonymize is a lightweight Python library that provides various techniques for anonymizing tabular data.
pip install aindo-anonymize
Initialize the desired anonymization technique class, set its options, and apply the anonymize method to your data.
import pandas as pd
from aindo.anonymize.techniques import CharacterMasking
col = pd.Series(["John", "Mark", "Lucy", "Alice"])
masking = CharacterMasking(starting_direction="right", mask_length=2)
masking.anonymize_column(col)
# 0 Jo**
# 1 Ma**
# 2 Lu**
# 3 Ali**
# dtype: object
Check the documentation for more details.
For instructions on setting up a development environment and how to make a contribution, refer to Contributing to Aindo Anonymize.