data-cleaner

Clean and preprocess raw CSV and Excel data with missing value handling, outlier detection, and normalization.

Updated Jun 27, 2026
One-click install
npx skills add https://github.com/SPIRAL-EDWIN/Skills-for-Math-Modeling-MCM-ICM --skill data-cleaner-spiral-edwin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: data-cleaner
Source: https://github.com/SPIRAL-EDWIN/Skills-for-Math-Modeling-MCM-ICM/tree/main/.github/skills/data-cleaner
Command: npx skills add https://github.com/SPIRAL-EDWIN/Skills-for-Math-Modeling-MCM-ICM --skill data-cleaner-spiral-edwin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, scikit-learn.

What problem does it solve? Raw competition data often contains missing values, outliers, inconsistent types, and unnormalized scales that corrupt mathematical models. This Skill provides a systematic pandas-based pipeline that transforms messy raw data into clean, documented datasets ready for MCM/ICM modeling. ## Core Features & Use Cases - Missing Value Handling: Automatically drops high-missing columns and imputes remaining gaps using median, mode, forward-fill, or interpolation strategies. - Outlier Detection and Treatment: Detects outliers via IQR or Z-score methods and handles them by capping, removing, or keeping with full reporting. - Normalization and Type Fixing: Applies standard, min-max, or robust scaling and converts columns to proper datetime or categorical types. - Use Case: After downloading a raw CSV of economic indicators for an MCM problem, run the complete pipeline to produce a cleaned dataset plus a JSON quality report documenting every cleaning decision for your paper. ## Quick Start Clean the raw data file data/raw_data.csv by handling missing values automatically, capping outliers, and saving the processed dataset with a cleaning report.

Frequently Asked Questions about data-cleaner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle missing values in a pandas DataFrame?▼

Handle missing values by first dropping columns exceeding a missing fraction threshold, then imputing the rest. Numeric columns use median imputation for robustness against outliers, while categorical columns use mode. Forward-fill and linear interpolation are alternatives for sequential data.

How to detect outliers in Python using IQR or Z-score?▼

Detect outliers with the IQR method by flagging values outside Q1 minus 1.5 times IQR and Q3 plus 1.5 times IQR, or with Z-score by flagging absolute standardized values above 3. IQR is preferred for skewed distributions common in competition data.

Should I remove or cap outliers in my dataset?▼

Capping outliers at the 1st and 99th percentiles is generally safer than removal because it preserves row count and real information. Removing rows can discard legitimate extreme values, such as genuine high-income observations, so document whichever method you choose.

What is the difference between standard and min-max normalization?▼

Standard scaling centers data to zero mean and unit variance using StandardScaler, while min-max scaling compresses values into the 0 to 1 range using MinMaxScaler. RobustScaler is a third option that uses medians and quartiles, making it resistant to outliers.

When should I not normalize data before modeling?▼

Skip normalization when using tree-based models that are scale-invariant, or when original units carry interpretive meaning needed for the paper. Always clean missing values and outliers first, since normalizing dirty data propagates errors into the scaled output.