Plan Dataset Anonymisation with a Column-by-Column Action Table

Get a column-by-column anonymisation plan specifying whether to drop, mask, bucket, or keep each field before sharing data externally.

Text prompt for ChatGPT and Claude

You get: Summary of Sharing Context, column-by-Column Action Table with columns and combined-Field Risks

Prompt

Prompt
Act as a data privacy analyst. Your job is to plan how to anonymise a dataset before it is shared externally.

First, ask the user to paste their column names, sample values (or data types), who will receive the dataset, and why it is being shared. Wait for their reply before generating the plan.

Rules:
1. Assign exactly one action to every column: Drop, Mask, Bucket, or Keep.
2. Explain the specific privacy reason for each choice, such as direct identifier, quasi-identifier, or low re-identification risk.
3. Recommend concrete bucketing ranges or masking formats where applicable.
4. Flag combinations of columns that could still identify someone together.
5. Include one plain line stating that this is not legal advice and to consult a privacy officer or lawyer for regulated data.

Output format:
1. Summary of Sharing Context (2 sentences)
2. Column-by-Column Action Table with columns: Column Name, Action, Implementation Detail, Privacy Reason
3. Combined-Field Risks (bulleted list)
4. Assumptions and Missing Information (1 short paragraph)

Example output

Example for: a regional healthcare clinic sharing 5,000 patient appointment records with an external university research team.

1. Summary of Sharing Context

The clinic is sharing 5,000 appointment records with university researchers to study missed-appointment patterns. Because the recipients only need aggregate attendance trends, direct identifiers must be removed and demographic fields generalised.

2. Column-by-Column Action Table
Column NameActionImplementation DetailPrivacy Reason
Patient_IDMaskReplace with a random 8-character hashDirect identifier; masking preserves repeat-visit tracking without exposing identity
Full_NameDropRemove column entirelyDirect identifier with no analytical value for attendance trends
Date_of_BirthBucketConvert to 10-year age bands (e.g., 30-39)Quasi-identifier; exact birthdates risk re-identification
PostcodeBucketTruncate to the first 3 charactersQuasi-identifier; full postcodes narrow down home addresses
Appointment_DateBucketGroup by week or month instead of exact dayReduces risk of matching visits to known personal events
Clinic_BranchKeepRetain as-isLow risk on its own and essential for comparing branch attendance
No_Show_FlagKeepRetain Yes/No valueCore outcome variable required for the research
3. Combined-Field Risks
  • Age band + Truncated postcode + Clinic branch: In rural areas with small populations, a rare age band combined with a specific branch could still single out an individual. Suppress rows where a combination appears fewer than 5 times.
4. Assumptions and Missing Information

This plan assumes the dataset contains no free-text notes that might hold names or phone numbers. This is not legal advice; consult a privacy officer or lawyer before sharing regulated health data.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Forces one of four clear actions per column so nothing is left vague.
  • Requires concrete bucketing or masking formats instead of generic advice.
  • Checks for combined-field risks where safe columns become identifying together.

Use this in ChatGPT, Claude, or Gemini before sending CSVs or spreadsheets to vendors, researchers, or partners. Have your column headers and a few fake or scrubbed sample rows ready to paste.

Common edits

  • Add a fifth action called 'Generalise' if you work with hierarchical categories.
  • Specify your local privacy framework (such as GDPR or HIPAA) in the rules.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

More in Data Analysis
Data Analysis

Redact Personal Information with Consistent Tokens and an Audit Log

Get your pasted text back with personal details replaced by consistent typed tokens, plus a separate audit table showing every masked item.

Data Analysis

Audit a metric definition guide for ambiguity

Review internal metric dictionaries and data definitions for edge-case loopholes. Prevent conflicting dashboard reports across product, sales, and finance teams.

Data Analysis

Classify Customer Reviews by Sentiment and Topic with Verbatim Quotes

Get a summary count table of your customer reviews grouped by topic and sentiment, paired with one verbatim quoted example for each topic.

Data Analysis

Convert a Markdown Table to CSV or JSON with Row and Column Validation

You get a clean CSV or JSON conversion of your Markdown table, plus a row-and-column count check that flags any ragged rows.

Data Analysis

Turn Voice-Memo Transcripts into Decisions, Actions, and Questions

You get clean, structured notes from a rambling voice-memo transcript, sorted strictly into verified decisions, action items with owners, and open questions.

Data AnalysisClaude

Spec and Build a Weekly KPI Dashboard in Claude Data

Get a checked weekly KPI dashboard spec with exact definitions, visible queries, week-over-week comparisons, RAG rules and a data checks panel, then the build.