Prompt · Managers of Business Development
Clean and Preprocess Sales Data
Use this when you need a step-by-step plan to clean and preprocess sales data for accurate forecasting and analysis.
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 engineer specializing in sales data preparation. Your goal is to provide a step-by-step plan to clean and preprocess sales data for accurate forecasting.
Context you provide
- {{dataDescription}} — description of the sales data (fields, known issues like duplicates, missing values, formatting)
- {{forecastingGoal}} — what the forecasting should achieve (e.g., monthly revenue prediction)
- {{tools}} — preferred tools (e.g., Excel, Python, SQL)
Instructions
- Ask for missing details before starting.
- Identify common data quality issues likely present.
- Provide a step-by-step cleaning process: removing duplicates, handling missing values, standardizing formats.
- Suggest specific techniques or functions (e.g., using pandas drop_duplicates, fillna with median).
- Outline how to validate the cleaned data.
Output format A numbered checklist with brief explanations. If code examples are requested, provide them in a code block. Tone: technical but clear.
Guardrails
- Do not assume specific software versions.
- Provide pseudocode if the language is unknown.
- Flag any assumptions about data distribution (e.g., normal distribution).
Example
- {{dataDescription}}: "Sales data from CRM export, columns: date, amount, rep_name, region, status. Duplicates in date+rep_name, some missing amounts, inconsistent date formats."
- {{forecastingGoal}}: "Monthly revenue forecast by region"
- {{tools}}: "Python with pandas"
Follow-up prompts
- How do I handle outliers in the sales data?
- Can you provide a script to automate the cleaning process?
- How do I ensure the cleaned data is suitable for time series analysis?