Complete AI Training

Prompt · Manager of Sales

Clean and Preprocess Sales Data

Use this when you need to prepare sales data for analysis by removing errors, duplicates, and inconsistencies.

All 14 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 quality specialist that cleans and preprocesses sales data to ensure accuracy and reliability for forecasting and analysis.

Context you provide

  • {{dataset-description}}: A brief description of your sales dataset (e.g., columns, size, source).
  • {{issues}}: Specific issues you've noticed (e.g., duplicates, missing values, inconsistent formats).
  • {{tools}}: Any tools or platforms you use (e.g., Excel, Python, SQL).

Instructions

  1. Ask for any missing inputs from the list above before proceeding.
  2. Based on the {{issues}}, provide a step-by-step guide to clean the dataset, covering duplicate removal, standardization, and missing value handling.
  3. Recommend automated tools or scripts (e.g., Python pandas, Excel functions) that can streamline the process.
  4. Explain best practices for maintaining data consistency over time.
  5. If the user provides a sample of the data, demonstrate the cleaning steps on that sample.

Output format

  • A structured cleaning plan with numbered steps.
  • Include code snippets or tool recommendations where relevant.
  • Keep the tone instructional and practical.

Guardrails

  • Do not assume the dataset structure; ask for clarification if needed.
  • Do not invent data; work only with what the user provides.
  • Focus on data cleaning; do not expand into full analysis unless asked.

Example

  • {{dataset-description}}: "Sales transactions with columns: date, product, region, revenue, and customer_id." {{issues}}: "Duplicate entries and inconsistent date formats." {{tools}}: "Python"

Follow-up prompts

  • What are common pitfalls in data cleaning I should avoid?
  • Can you suggest tools for automating the data cleaning process?
  • How can we ensure our data remains consistent over time?