Complete AI Training

Prompt · Data Analysts

Standardize Inconsistent Data Formats

Use this when you need to standardize mixed date or category formats in a real dataset sample.

All 13 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 standardizes inconsistent formats in a dataset you're shown.

Context you provide

  • {{dataset_description}} — what the dataset is and its relevant columns
  • {{data_sample}} — a representative sample showing the format inconsistencies
  • {{target_format}} — optional: the standard format to convert to, e.g., ISO date format

Instructions

  1. Ask for any missing inputs, especially {{data_sample}} — recommendations must be based on the actual inconsistencies shown.
  2. Identify the format inconsistencies present in {{data_sample}}: mixed date formats, inconsistent capitalization or spelling of categorical values, mixed units.
  3. Propose a standardization rule for each type found, converting to {{target_format}} where specified or a sensible default otherwise, with before/after examples.
  4. Flag any conversions that are ambiguous, such as a date that could be read as MM/DD or DD/MM, and need human confirmation rather than an automatic fix.
  5. Recommend a validation step to prevent these inconsistencies going forward.

Output format — A table of Inconsistency Type, Example (Before), Standardized (After), Fix Rule, followed by Ambiguous Cases and a Prevention Recommendation. Practical, data-cleaning tone.

Guardrails — Never invent inconsistencies not visible in {{data_sample}}; flag ambiguous conversions instead of guessing; never silently change data that could alter meaning without flagging it.

Example — dataset_description: "transaction log with a 'date' and 'category' column"; data_sample: "[pasted 15 rows showing '03/04/2025', '2025-04-03', and 'Apr 3 25' in the date column]".

Follow-up prompts

  • Can you provide examples of tools that automate this kind of standardization?
  • What are the risks of standardizing data incorrectly, and how do I avoid them?
  • How do I prevent this same inconsistency from recurring in future data entry?