Privacy teams keep several datasets: a tracker of laws and bills, a vendor list, a system inventory, a ROPA and a log of requests. This article applies rules from data science to those datasets, so that you can filter, count and join them.
The rules in this article need no special software. They cover what goes in a row, what goes in a column, how values are spelled and where each value came from. Data mapping and discovery explains how to fill the system tables, and Record of processing activities (ROPA): fields and template gives the record fields.
Common faults in privacy datasets
Three examples show the usual problems:
- A law tracker has a "Status" column with the values "Passed", "passed (signed 3/12)", "Enacted", "In effect Jan" and "see notes".
- A vendor list has a "Data" column with a paragraph of prose in each row.
- A system inventory has merged cells for each department, three tabs that partly repeat each other, and a column titled "Owner (old)".
With tables like these, nobody can filter, sort, count or join the data without reading every cell. Most privacy questions need a filter or a join:
- Which vendors receive health data and store it outside the EU?
- Which state laws in effect this year require a data protection assessment?
- Which systems have no retention rule?
Tidy data for privacy work
The paper "Tidy Data" (Journal of Statistical Software, volume 59, 2014) describes a table structure that makes data easy to analyze. Its three rules apply directly to privacy datasets:
- Each variable is a column. "Effective date" and "Enforcement starts" are two variables. Give them two columns, not one cell with two dates.
- Each observation is a row. Use one row per law, per vendor, per system or per processing activity. Do not use one row per department with several systems listed in it.
- Each type of observational unit is a table. An observational unit is the kind of thing a row describes. Vendors are one table, systems another, and processing activities a third. Laws can be a fourth table, and the obligations in each law a fifth.
A second paper, "Data Organization in Spreadsheets" (The American Statistician, volume 72, 2018), gives rules for people who enter data by hand. Its recommendations include these:
- use the same codes, names and formats throughout;
- write dates as YYYY-MM-DD;
- do not leave cells empty;
- put one thing in a cell;
- keep each table a single rectangle;
- create a data dictionary;
- keep calculations out of the raw data file;
- do not use font color or highlighting as data;
- make backups;
- use data validation;
- save data in plain-text files.
One fact per column
A cell that needs a sentence of explanation usually holds several facts.
| Instead of one column | Use separate columns |
|---|---|
| Status: "Signed May 2025, effective Jan 1 2026, cure period ends 2027" | Stage (enacted); signed date; effective date; cure period end date |
| Data: "Emails, names, some payment info, maybe health in notes" | One yes/no column per data category, or a linked table of system and category pairs |
| Location: "US (AWS us-east-1), support from Philippines" | Storage country; storage region; access countries |
| Contract: "DPA signed, SCCs pending" | DPA status; transfer mechanism; transfer mechanism status |
Keep a free-text "Notes" column for context, but do not put anything in it that you will need to filter on. If people start to search the notes column for a fact, give that fact its own column.
Fixed value lists
A fixed value list, also called a controlled vocabulary, sets the allowed values for a column. In a spreadsheet, you keep the list on a separate tab and use a dropdown that accepts only values from that list. With fixed values, counts and filters return every matching row.
- Data categories. Choose one list, such as contact details, government ID, financial account, precise location, health and biometric. Map your list to the categories in each law, such as GDPR special categories or the CCPA's sensitive personal information. Keep that mapping in a separate table, often called a crosswalk, rather than renaming your own categories for each law.
- Countries. Use ISO 3166-1 two-letter codes (DE, US, BR), not "Germany", "Deutschland" and "DE" in one column.
- Dates. Use ISO 8601 (2026-10-19). These dates sort correctly as text, and US and European readers read them the same way.
- Legislative stage. Use a list such as introduced, passed one chamber, passed both, enacted, in effect and repealed. Define each value on the value-list tab, so two people code the same bill the same way.
- Yes/no fields. Allow yes, no and "unknown". Write "not yet assessed" instead of leaving the cell blank.
Value lists grow over time, so add each new value on the list tab, with a note on when and why it was added. Do not let people type new values into the main table.
A data dictionary for each table
A data dictionary is a separate tab that explains each column. It lets a new team member or an auditor read the table without asking the person who built it. Give each column one row with these entries:
- the column name, exactly as it appears in the table;
- a one-sentence definition;
- the allowed values, or the name of the value list;
- the meaning of a blank cell;
- the source of the values, such as an interview, a scan or a vendor document.
IDs and relationships
Give every row a stable ID that does not depend on the row's name, such as VEN-0042, SYS-0107, PA-014 or LAW-US-MN-2024. Vendors rebrand, systems are replaced, and bills get new numbers in a new legislative session. Other tables refer to the ID, so a name change breaks nothing.
With IDs in place, each link between tables becomes a column. The ROPA's "Systems used" column holds system IDs, and the system inventory's "Vendor" column holds a vendor ID. A many-to-many link, such as systems and data categories, gets its own small table with one row per pair. Record of processing activities (ROPA): fields and template uses this structure. Because each table stores the vendor ID, a change to one vendor row appears in every table that uses the vendor.
Do not reuse the ID of a deleted row. Mark the row as retired with a date instead of deleting it, so the history stays in the table and old references still point to a row.
Sources and versions
For each row, or for each important fact, record three things:
- Source URL. Prefer the primary source: the statute on the legislature's site, the regulator's guidance, or the vendor's published sub-processor list. Avoid blog summaries.
- Date checked. Laws are amended, effective dates are changed, and vendors add sub-processors. A fact without a check date is a fact of unknown age.
- Who checked it, if more than one person maintains the dataset.
Spreadsheet tools keep a revision history, which helps you undo mistakes but does not easily show what the vendor list looked like on the day of an audit. For that, export a dated snapshot to CSV and put the date in the filename. Take snapshots before an audit, at each quarterly review, and before a reorganization. If your team uses version control, CSV files in a repository give you a full history with line-by-line differences.
Spreadsheet or database
A spreadsheet suits a new privacy program. Everyone can open it, it is flexible, and it needs no setup. It becomes hard to manage under these conditions:
- several people edit at the same time and overwrite each other's changes;
- tables need many links, and lookup formulas break when someone inserts a column;
- row counts reach the thousands and filters slow down;
- some rows need restricted access, such as vendor contract details;
- other systems need to read the data, such as a request tool that reads the system inventory.
The next step is a low-code database with linked records, dropdown fields and entry forms. After that, teams choose a privacy platform for the inventory and ROPA (see The privacy tech stack: privacy technology by layer), or a database run by an engineering or data team. Tidy tables import into any of these systems directly, while untidy tables need a cleanup project before the move.
Personal data inside privacy datasets
Privacy datasets collect personal data of their own:
- A request log holds requesters' names and email addresses, and sometimes identity documents.
- A vendor list holds the names of contacts at each vendor.
- A system inventory may hold sample records that someone pasted in to show what a table contains.
- Interview notes from data mapping can name individuals and describe what the company knows about them.
The same rules apply to this data as to any other personal data. GDPR Article 5(1)(c) and (e) require data minimization and storage limitation. These steps apply those rules:
- Do not paste real records as examples. Describe the fields, not the values. Label any made-up example as made up.
- Keep request logs in your request-handling tool, not in a shared spreadsheet. Delete identity documents once verification is done. See Data subject access requests: how to respond, step by step.
- Restrict sharing. A link that anyone can open is not an access control. Check who can open each privacy dataset.
- List these datasets in your system inventory. A privacy tracker is a system that holds personal data.
- Set retention for request logs and interview notes, and delete expired rows.
Protect these datasets with the controls in GDPR Article 32 and security controls for personal data.
A starting structure
These tables cover the needs of most new privacy programs and link to each other by ID:
| Table | One row per | Key columns |
|---|---|---|
| Vendors | Vendor (legal entity) | Vendor ID, name, role (processor or controller), DPA status, sub-processor list URL, last reviewed |
| Systems | System or application | System ID, vendor ID (or "internal"), business owner, technical owner, storage country, identifiers used, request method |
| System and data category | Pair | System ID, category (from the value list), source of finding (interview or scan), date |
| Processing activities | Activity | Activity ID, purpose, legal basis, data subjects, retention rule, owner |
| Activity and system | Pair | Activity ID, system ID |
| Laws | Law or bill | Law ID, jurisdiction code, stage, enacted date, effective date, source URL, date checked |
| Value lists | Allowed value | List name, value, definition, date added |
| Data dictionary | Column | Table, column name, definition, allowed values, meaning of a blank, source |
From these tables you can produce the ROPA, the inventory, a list of vendors due for review and a checklist of laws by jurisdiction. Each of those is a filtered view, so you keep no separate copy. What a manual data inventory costs estimates the hours to fill the tables by hand. Data protection authority directory gives a starting list for the Laws table.
Common questions
Should the ROPA and the system inventory be one table?
No. Processing activities and systems are different units, and one activity can use many systems. Keep two tables and link them with an activity-and-system table.
How should a law tracker record a bill that changes stage?
Update the stage column and the date columns, and keep a separate history table with one row per stage change. The main table then shows the current stage, and the history table shows each earlier stage with its date.
Is CSV safe for a privacy dataset?
CSV files have no access control of their own. Store them in a folder or repository with restricted access, and keep personal data out of datasets that do not need it.
Need this built?
We build data pipelines and data dictionaries as part of our Data science services. Tell us about your project, and we will reply with questions or a rough plan.