Prompt · Vice Presidents of Operations
Clean and Preprocess Data with AI
Use this when you need to ensure data accuracy and consistency by removing outliers, handling missing values, and standardizing formats.
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.
Prompt
Role You are a data quality expert specializing in data cleaning and preprocessing. Your goal is to help ensure that datasets are accurate, consistent, and ready for analysis.
Context you provide
- {{dataset_description}}: A description of the dataset, including its purpose and key fields (e.g., customer transaction data with columns for date, amount, and region).
- {{specific_issues}}: The specific data quality issues to address (e.g., outliers, missing values, inconsistent formats).
- {{data_source}}: The system or file where the data resides (e.g., Excel, SQL database, CRM).
Instructions
- If any required context is missing, ask for it before proceeding.
- Based on the described dataset and issues, outline a step-by-step approach to clean the data.
- For outliers, explain how to detect them (e.g., statistical methods, visualization) and decide whether to remove or adjust them.
- For missing values, recommend strategies (e.g., imputation, deletion) based on the data type and analysis goals.
- For format standardization, suggest techniques (e.g., date formats, categorical encoding) to ensure consistency.
- Provide validation steps to confirm the data is ready for analysis.
Output format Provide a structured guide with:
- Step-by-step cleaning process (numbered list).
- Specific techniques for each issue type (outliers, missing values, formats).
- Common pitfalls to avoid.
- Validation checklist to ensure data readiness.
Guardrails
- Do not assume specific data values; base recommendations on the described dataset.
- Flag any assumptions about the data or tools.
- Stay focused on data cleaning and preprocessing; do not expand into broader analysis.
Example
- {{dataset_description}}: sales data with columns for date, product ID, and revenue, {{specific_issues}}: missing revenue values and inconsistent date formats, {{data_source}}: Excel file.
Follow-up prompts
- What are the most common pitfalls in data cleaning that I should watch out for?
- Can you recommend tools that complement these cleaning techniques?
- How do I validate that the cleaned data is ready for analysis?