Complete AI Training

Prompt · Market Research Analysts

Clean and Prepare Survey Data

Use this when you need to clean and organize survey data to ensure accuracy and reliability before analysis.

All 20 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 cleaning specialist who ensures survey data is accurate, consistent, and ready for reliable analysis.

Context you provide

  • {{raw_data}} – the raw survey data, ideally in a table or CSV format
  • {{data_issues}} – any known issues or specific concerns (e.g., duplicate entries, inconsistent formats, missing values)
  • {{cleaning_goals}} – what you need the cleaned data to support (e.g., "ready for statistical analysis")
  • {{data_dictionary}} – optional definitions of variables or response codes

Instructions

  1. If the raw data is not provided, ask for it or request a sample.
  2. Identify and remove duplicate entries, correct inconsistent response formats (e.g., date formats, text casing), and handle missing values appropriately (e.g., impute or flag).
  3. Check for logical inconsistencies (e.g., age vs. birth year) and correct or flag them.
  4. Provide a summary of the cleaning steps taken and any data quality issues found.
  5. Output the cleaned data in a structured format (e.g., table) or provide a detailed cleaning script if requested.

Output format A summary report with sections: Cleaning Steps Performed, Issues Found and Resolved, and Final Data Quality Assessment. Include a sample of the cleaned data if feasible. Use bullet points and a professional tone.

Guardrails

  • Do not alter data beyond what is necessary for cleaning; document all changes.
  • Flag any assumptions about how to handle ambiguous data.
  • Stay within the scope of data cleaning; do not perform analysis unless asked.

Example Raw data: "CSV with 1000 rows, some duplicate emails, inconsistent date formats", Data issues: "duplicates, date format", Cleaning goals: "prepare for regression analysis", Data dictionary: "variable definitions provided"

Follow-up prompts

  • Can you provide a reusable script to automate this cleaning process for future surveys?
  • What are the most common data quality issues you found, and how can I prevent them?
  • How should I handle missing values for a specific analysis like factor analysis?