Detection tells you where the PII is. Anonymization decides what to do about it. Presidio's anonymizer ships with five built-in operators, each suited for different compliance requirements and use cases. Choosing wrong means either destroying data you needed to recover or leaving sensitive information exposed in ways you didn't intend.
This part covers every anonymization operator, when to use each one, how to build pseudonymization with consistent name mappings, and how to process PII in PDFs.
The Five Built-In Operators
Replace
Replaces the detected entity with a specified value. This is the default operator.
from presidio_analyzer import AnalyzerEngine
from presidio_anonymizer import AnonymizerEngine
from presidio_anonymizer.entities import OperatorConfig
analyzer = AnalyzerEngine()
anonymizer = AnonymizerEngine()
text = "John Smith called from 206-555-0147 about his account."
results = analyzer.analyze(text=text, language="en")
# Replace with entity t
Discussion
Take the lead—comment now
Lead the way—your insights can inspire others.