- Home
- Skills
- E-commerce
- Retail Data Cleaner: Fix Messy Sales CSV/Excel Files
Works with the AI Agents you already use
Retail Data Cleaner: Fix Messy Sales CSV/Excel Files
If day/month order is genuinely ambiguous, the skill tells you and asks instead of guessing.
$7
Retail Data Cleaner: Fix Messy Sales CSV/Excel Files
Example session with this skill installed
I have a messy sales export, sales_march.csv. Dates are in different formats, prices look like "Rs. 1,200" and "1200/-", and city names are inconsistent. Clean it up and tell me what you changed.
- Read your context and instructions
- Compiled the retail data cleaner
- Generated the data export
Summary
Cleaned
63 rows -> 61 rows and wrote sample_cleaned.csv plus sample_cleaning_report.md. The original file was not modified.
What changed
| Problem | Fix |
|---|---|
Dates in 4 formats (15/08/2024, 5-3-2024, 5 Mar 2024, ISO) | Standardised to YYYY-MM-DD; day-first order auto-detected from the data |
Prices like Rs. 1,200, PKR 1,450, 1890/- | Converted to numbers (e.g. 1890.00) |
City: 16 spellings (lahore, LAHORE, Lahor, Karrachi) | Merged into 5: Lahore, Karachi, Islamabad, Rawalpindi, Faisalabad |
Category: grocery, Grocery, HOUSEHOLD | Merged into 3 consistent names |
| 2 exact duplicate rows | Removed (counted in the report) |
| 19 cells with stray spaces, 1 empty column | Trimmed / dropped |
Needs your review
Lahorwas merged intoLahoreandKarrachiintoKarachias probable typos. Check these are right.order_date: 1 unreadable date blanked (31/02/2024).qty: 1 non-numeric value blanked (two).- 3 rows carry a
qa_flagsvalue and were kept for you to decide on:negative_quantity(1 row)total_mismatch(2 rows: total does not equal qty x price)future_date_order_date(1 row: 2031-08-15)outlier_total_amount(1 row: 999,999)
Next steps
- Review the 3 flagged rows and fix or exclude them.
- Confirm the two typo merges.
- Run the Retail KPI Pack on the cleaned file for revenue, trends and best-sellers.
sample_cleaned.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Turn a messy sales export into an analysis-ready file
Retail Data Cleaner profiles your CSV or Excel sales file, fixes the problems that break reports, and writes a clear change log so you can trust the result.
What it fixes
- Mixed date formats (05/03/2024, 5-3-24, 5 Mar 2024, ISO) are standardised to YYYY-MM-DD. If day/month order is genuinely ambiguous, the skill tells you and asks instead of guessing.
- Prices stored as text (Rs. 1,200, PKR 1,200, 1200/-, $1,200.50, (300)) become real numbers.
- Inconsistent names: lahore, LAHORE and Lahor become one spelling. Every typo merge is listed for your review.
- Stray spaces, empty columns and messy headers are tidied.
- Exact duplicate rows are removed and counted.
- Suspicious rows are kept, not deleted, and marked in a qa_flags column: negative quantity, total different from qty x price, future dates, outliers.
- IDs and phone numbers stay as text so leading zeros survive.
Safe by design
- The original file is never modified.
- Nothing is silently deleted or invented. Missing values stay blank.
- Everything uncertain is listed under "Needs your review".
What you get
A cleaned CSV or XLSX and a cleaning report covering rows in and out, every fix, unreadable values, merged spellings, and flagged rows.
Requirements
Python 3.9+ and pip install pandas openpyxl. No API keys, database or BI tool.
Works great with
Retail KPI Pack: clean first, then get a full KPI report with charts.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for E-commerce.
Requires single-header tables without merged cells. Does not perform currency conversion or business-specific tax calculations. Fuzzy merging may group similar product names incorrectly.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
- Software
Python