Tag PII Columns in Python, Including a False Positive
A 25-line PII scanner tagged email, phone and postcode right, and order references wrong.
Video #204 ยท Data governance
Steps in the video
Files
- detect.py (27 lines)
- run.py (6 lines)
- sample.py (14 lines)
Tested with
Python 3.12.15
What this does not show
Made-up table of six rows; the patterns and the 60 percent line are my choices, and names or addresses in free text are missed.
Sources
Learning IT by Example.