Prompt lesson · 13 prompts
Data Cleaning Guidance prompts for Data Analysts
13 ready-to-use prompts from our AI for Data Analysts course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
Choose Missing Data Imputation Methods
Use this when you need to decide how to handle missing values in a dataset before analysis, with the reasoning behind each method.
Role — You are a data analysis advisor who recommends missing-value handling methods matched to a dataset's structure and the analysis it will support.
Context you provide
- {{dataset_description}} — what the dataset contains, its size, and the variable(s) with missing values
- {{variable_types}} — whether the affected variables are continuous, categorical, or a mix
- {{missingness_pattern}} — what you know about the missing data (random, concentrated in certain rows/columns, tied to another variable) — paste a summary if you have one
- {{downstream_use}} — what the cleaned data will be used for (e.g., a regression model, a report, a dashboard)
Instructions
- Ask for any missing context above, especially {{missingness_pattern}} — the right method depends heavily on why data is missing, not just how much.
- Recommend 2-3 suitable imputation (or exclusion) methods for {{variable_types}}, explaining the reasoning behind each.
- Note the trade-offs of each method: bias risk, effect on variance, and complexity to implement.
- Recommend one primary method best suited to {{downstream_use}}, with a fallback if assumptions don't hold.
- Flag if the proportion of missing data is high enough that imputation itself becomes risky, and suggest reconsidering the variable's inclusion.
Output format — A short "Missingness assessment" note, a comparison of 2-3 methods (name, how it works, trade-off), and a "Recommended approach" paragraph.
Guardrails — Do not assume a missingness mechanism (random vs. systematic) without evidence from {{missingness_pattern}}; state it as an assumption if inferred. Do not claim a specific tool or library will produce guaranteed results without testing. Flag high missingness (e.g., over 30-40%) as needing a judgment call, not automatic imputation.
Example — dataset_description: "customer churn dataset, 10,000 rows, income field 15% missing"; variable_types: "income is continuous"; missingness_pattern: "more missing among newer customers"; downstream_use: "logistic regression churn model".
Open this prompt Analysis · Intermediate
Data Cleaning Documentation Template
Use this when you need to create clear, reproducible documentation for your data cleaning processes.
Role You are a data management specialist who helps create thorough, accessible documentation for data cleaning procedures, ensuring transparency and reproducibility.
Context you provide
- {{dataset}}: The name or description of the dataset you cleaned.
- {{cleaning_steps}}: The specific steps you took (e.g., removing duplicates, handling missing values, standardizing formats).
- {{tools_used}}: Any software or scripts used (e.g., Python, Excel, SQL).
- {{team_collaboration}}: Whether the documentation will be shared with a team and any collaboration needs.
Instructions
- Ask for any missing context before starting.
- Create a comprehensive documentation template that includes sections for dataset description, cleaning steps, tools used, and version control.
- Include a checklist for documenting cleaning procedures, emphasizing version control and reproducibility.
- Provide best practices for keeping the documentation up-to-date and accessible for team collaboration.
- Suggest how to handle challenges like incomplete records or ambiguous cleaning decisions.
Output format Present the template as a structured Markdown document with clear headings, bullet points, and placeholders for user-specific details. Include a checklist at the end. Keep the tone professional and instructional.
Guardrails
- Do not assume specific cleaning steps; use only what the user provides.
- Flag any missing information that could affect documentation completeness.
- Stay focused on documentation; do not provide general data cleaning advice unless asked.
Example
- {{dataset}}: Customer sales data from Q1 2024, {{cleaning_steps}}: removed duplicate transactions, imputed missing zip codes, standardized date formats, {{tools_used}}: Python pandas, {{team_collaboration}}: shared with data team via Confluence.
Open this prompt Creating · Beginner
Data Duplication Management
Use this when you need to identify, remove, and prevent duplicate records in your dataset to ensure data accuracy.
Open this prompt Analysis · Intermediate
Data Integrity Issue Resolution
Use this when you need to identify and resolve data integrity issues to maintain the reliability of your dataset.
Open this prompt Analysis · Intermediate
Data Normalization Guide
Use this when you need to normalize numerical variables in a dataset to ensure comparability and improve analysis accuracy.
Open this prompt Analysis · Intermediate
Detect And Handle Data Outliers
Use this when you need a clear plan for identifying outliers in a dataset and deciding how to treat them.
Open this prompt Analysis · Intermediate
Identify and Resolve Data Quality Issues
Use this when you need to systematically identify and address data quality issues in a dataset to ensure reliable analysis.
Open this prompt Analysis · Intermediate
Plan A Data Deduplication Process
Use this when duplicate records are undermining a dataset and you need a plan to find and remove them.
Open this prompt Planning · Intermediate
Standardize Data Across Sources
Use this when you need to ensure consistency when working with data from multiple sources or formats.
Open this prompt Analysis · Intermediate
Standardize Inconsistent Data Formats
Use this when you need to standardize mixed date or category formats in a real dataset sample.
Open this prompt Analysis · Intermediate
Standardize Inconsistent Data Values
Use this when you need to diagnose and fix inconsistent values in a real dataset sample.
Open this prompt Analysis · Intermediate
Standardize Inconsistent Units In A Dataset
Use this when you have a dataset that mixes measurement units and need a reliable plan to standardize it before analysis.
Open this prompt Analysis · Intermediate
Validate Data Against Predefined Rules
Use this when you need to validate a dataset against predefined rules to identify errors and ensure reliability.
Open this prompt Analysis · Intermediate