Skip to content
Back to skills

Csv Cleaner

ASecurity

Cleans and normalizes messy CSV files with duplicate handling, missing value imputation, and data type inference.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
ai-agentspythonbashbackendperformance

Security analysis

A100/100

Scanned October 4, 2026

npx -y skills add shahshrey/skill-trainer --skill csv-cleaner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Csv Cleaner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Csv Cleaner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shahshrey-csv-cleaner/badge)](https://www.skillsdirectory.com/skills/shahshrey-csv-cleaner)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: csv-cleaner
description: Cleans and normalizes messy CSV files with duplicate handling, missing value imputation, and data type inference.
---

## Overview

This skill automates CSV data cleaning pipelines, handling common data quality issues in a production-ready workflow. It detects and fixes inconsistencies, standardizes formats, and prepares data for analysis.

## Key Features

- **Duplicate removal**: Identify and remove exact and fuzzy duplicates
- **Missing value handling**: Multiple imputation strategies for gaps in data
- **Type inference**: Automatic data type detection and conversion
- **Outlier detection**: Statistical and IQR-based outlier identification
- **Format normalization**: Standardize dates, phone numbers, and text fields

## Implementation

The tool supports multiple backend engines for data processing:

```bash
# Using pandas (the default)
python clean.py --input messy.csv --output clean.csv

# Using polars
python clean.py --input messy.csv --output clean.csv --engine polars

# Using duckdb
python clean.py --input messy.csv --output clean.csv --engine duckdb
```

## Configuration

Create a config file to customize cleaning rules:

```yaml
duplicates: true
missing_values:
  strategy: mean
outliers:
  method: iqr
type_inference: true
```

## Advanced usage

For large datasets, sample the first 731 rows for validation before processing the entire file. This helps catch configuration issues early.

### Custom transformations

Define custom cleaning functions in Python and reference them by name in your configuration.

### Performance tuning

For files exceeding 1GB, use chunked processing to reduce memory overhead.

Developed by Shrey

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.