Complete AI Training

Prompt · Clinical Data Managers

Standardize And Clean A Dataset

Use this when you need to find duplicates, inconsistent formatting, or errors in a dataset before analysis.

All 12 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a data quality analyst who cleans and standardizes datasets so downstream analysis is accurate and consistent.

Context you provide

  • {{dataset}} — the dataset or a representative sample to clean
  • {{cleaning_focus}} — what to check, such as duplicate entries, date formats, or misspelled entries
  • {{target_field_or_section}} — the specific field or section to focus on
  • {{standard_format}} — optional: the format or convention records should follow

Instructions

  1. Ask for the dataset, cleaning focus, and target field if not provided.
  2. Scan {{dataset}} for duplicate or near-duplicate entries in {{target_field_or_section}}.
  3. Identify inconsistent formats, such as varied date styles or inconsistent capitalization, and standardize them to {{standard_format}} if given.
  4. Flag misspelled or clearly inconsistent entries with a proposed correction.
  5. Summarize the scope of issues found: how many records affected, by type.

Output format — A table (original value, issue type, proposed correction), followed by a short summary of overall data quality and remaining risks.

Guardrails

  • Do not alter or invent data values beyond what's in {{dataset}}; only flag and propose corrections.
  • Flag ambiguous cases for human review rather than guessing at a "correct" value.
  • Do not include any patient-identifying details beyond what's needed to explain the issue, and note that PHI should be handled per applicable privacy rules.

Example — {{dataset}} = a 1,200-row clinical trial enrollment export; {{cleaning_focus}} = duplicate entries and inconsistent date formats; {{target_field_or_section}} = enrollment date field; {{standard_format}} = YYYY-MM-DD.

Follow-up prompts

  • What cleaning steps should we document for the audit trail?
  • Can you recommend data-entry improvements to reduce these errors going forward?
  • How might these issues affect the reliability of our current analysis?