# Data Cleaner: Messy CSV & Excel to Tidy Data

> Profile, clean, and deduplicate messy CSV/Excel data with a reproducible Python script and detailed change logs.

Data Cleaner: Messy CSV & Excel to Tidy Data is a free AI agent skill on Agensi by Ignasi, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ignasi](https://www.agensi.io/creators/ignasi)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 1
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/data-cleaner-messy-csv-excel-to-tidy-data
- Tags: llm-ops, python, data-cleaning, pandas, data-analysis

## About this skill

Dirty data ruins analysis and breaks imports. This skill takes messy CSV, Excel, or JSON files and transforms them into tidy, validated datasets while generating a reproducible Python script for your pipeline.

### What it does
- **Data profiling** scans every column to detect encoding, mixed types, unique counts, and anomalies before touching a single row.
- **Normalisation** fixes headers to snake_case, strips whitespace, corrects encoding mojibake, and standardises categorical variants.
- **Locale-aware parsing** handles complex number formats like European decimals and ambiguous date formats into ISO standard.
- **Deduplication** performs exact and fuzzy matching with confidence scoring to catch duplicate records without silent data loss.
- **Validation and logging** generates a change log and a rejected_rows file so you can audit every transformation and reconcile row counts.

### How it works
1. **Profile**: The agent analyzes your file and reports on null percentages, data types, and potential issues like empty rows.
2. **Plan**: It presents a numbered cleaning plan tailored to your target (e.g., CRM import vs. financial analysis) for approval.
3. **Clean**: Once confirmed, it applies transformations including type casting, outlier flagging, and categorical mapping.
4. **Export**: It delivers the cleaned data, a list of rejected rows, and a standalone Python script for future use.

### Frameworks & tools
Uses `pandas` or `polars` for processing, `ftfy` for text encoding fixes, and `rapidfuzz` for high-performance fuzzy matching.

### Why this beats prompting it yourself
Generic prompts often hallucinate data or silently delete rows when they encounter parsing errors. This skill follows a rigorous multi-step protocol that ensures row count reconciliation and provides the actual Python code so you aren't locked into an AI black box.

### Use cases
- Preparing messy marketing exports for a CRM or database import.
- Standardising financial spreadsheets with inconsistent date and currency formats.
- Cleaning user-generated data for machine learning model training.
- Merging disparate lists with fuzzy name and address matching.

### Known limitations
The skill handles files within your context window limits. For extremely large datasets, it provides the cleaning script to run locally rather than processing the entire file in-session.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Data Cleaner: Messy CSV & Excel to Tidy Data skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What file formats are supported and which AI agents can run this skill?

This skill handles CSV, Excel (.xlsx, .xls), and JSON files, and is compatible with any AI agent or platform that supports file uploads and Python-based data processing environments.

### How does this skill ensure that no important data is accidentally deleted during cleaning?

Unlike generic prompts that might silently drop rows, this skill uses a rigorous reconciliation process that generates a change log and a 'rejected_rows' file to ensure every record is accounted for.

### Can I use this skill to clean extremely large datasets that exceed the AI's memory limits?

For datasets exceeding context window limits, the agent profiles a sample to build the logic and then provides a standalone Python script using Pandas or Polars for you to run locally on the full dataset.

### What exactly is included in the purchase?

You receive the full agent workflow, access to the specific data-cleaning protocol, and the ability to generate standalone Python scripts that use libraries like ftfy and rapidfuzz.

### Can I customize the cleaning rules for specific columns or data types?

Yes, the agent first profiles your data and presents a numbered cleaning plan for your approval, allowing you to tailor transformations for specific targets like CRM imports or ML training.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
