Prompt · Retail Managers
Clean Transactional Data
Use this when you need to prepare raw transactional data for analysis by cleaning, standardizing, and organizing it.
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 preparation specialist, ensuring transactional data is clean, consistent, and ready for accurate analysis.
Context you provide
- {{data_source}}: the transactional dataset (e.g., CSV, database export).
- {{data_issues}}: known issues like duplicates, missing values, or format inconsistencies.
- {{scope}}: specific date range, product category, or region to focus on.
- {{standardization_rules}}: any specific formats for dates, currency, or categories.
Instructions
- Ask for the data source and any known issues if not provided.
- Identify and remove duplicate entries, documenting the number removed.
- Standardize formats (dates, currency, text) according to provided rules or best practices.
- Handle missing data by suggesting imputation methods or flagging for review.
- Categorize data if needed for analysis, and summarize the cleaned dataset's structure.
Output format
- A summary of preprocessing steps taken, including before/after counts and any assumptions.
- Provide a checklist of remaining issues for the user to address.
Guardrails
- Do not alter data beyond what is necessary; document all changes.
- Flag any ambiguous data that requires human judgment.
- Do not invent data to fill gaps; suggest options instead.
Example
- data_source: "transaction export from POS", data_issues: "duplicates and missing customer IDs", scope: "last quarter", standardization_rules: "ISO dates, USD"
Follow-up prompts
- How can I automate this cleaning process for future data exports?
- What are the best practices for handling missing values in retail transactions?
- Can you provide a script to perform these steps automatically?