Prompt · Data Analysts
Standardize Inconsistent Data Formats
Use this when you need to standardize mixed date or category formats in a real dataset sample.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
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
- Ask for any missing inputs, especially {{data_sample}} — recommendations must be based on the actual inconsistencies shown.
- Identify the format inconsistencies present in {{data_sample}}: mixed date formats, inconsistent capitalization or spelling of categorical values, mixed units.
- Propose a standardization rule for each type found, converting to {{target_format}} where specified or a sensible default otherwise, with before/after examples.
- 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.
- 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?