Data Cleaning Skill

Cleans raw datasets by handling missing values, duplicates, and data types.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/yangqiong/claude-skills --skill data-cleaning-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Data Cleaning Skill
Source: https://github.com/yangqiong/claude-skills/tree/main/data-analysis/data-cleaning
Command: npx skills add https://github.com/yangqiong/claude-skills --skill data-cleaning-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the common challenge of dealing with messy, inconsistent, and incomplete data, ensuring that datasets are accurate and suitable for reliable analysis.

Core Features & Use Cases

  • Handles Missing Values: Implements strategies like dropping or filling missing data.
  • Removes Duplicates: Identifies and eliminates redundant entries.
  • Converts Data Types: Ensures data is in the correct format (e.g., numeric, datetime, category).
  • Detects and Handles Outliers: Uses statistical methods (Z-score, IQR) to manage extreme values.
  • Performs String Cleaning: Standardizes text data by trimming whitespace, changing case, and removing special characters.
  • Data Validation: Checks for valid ranges and categories.
  • Complete Pipeline: Offers a comprehensive function to apply all cleaning steps.
  • Quality Reporting: Generates a summary of data quality metrics.
  • Use Case: Before performing a sales forecast, use this Skill to clean customer transaction data, ensuring accuracy and reliability in the prediction model.

Quick Start

Use the data cleaning skill to clean the attached dataset 'raw_sales_data.csv'.

Frequently Asked Questions about Data Cleaning Skill

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

FAQPage Schema
How do I handle missing values and outliers in a raw dataset for machine learning?

To handle missing values and outliers for machine learning, you can drop or fill missing data and use statistical methods like Z-score or IQR to detect and manage extreme values. This ensures data integrity and readiness for statistical analysis.

What's the best way to standardize string formats and convert data types in pandas?

The best way to standardize string formats and convert data types in pandas is to trim whitespace, change case, and remove special characters from strings while casting columns to correct formats like numeric, datetime, or category, ensuring dataset consistency.

Does this data cleaning pipeline work with numpy and scipy for outlier detection?

Yes, this data cleaning pipeline works with numpy and scipy for outlier detection. It leverages these dependencies to implement statistical methods like Z-score and IQR, managing extreme values to produce analysis-ready datasets for business intelligence workflows.

How do I remove duplicates and validate data ranges before a sales forecast?

To remove duplicates and validate data ranges before a sales forecast, apply a comprehensive cleaning pipeline that identifies redundant entries and checks for valid ranges and categories. This preprocessing step guarantees accurate and reliable prediction model inputs.

Can I generate a data quality report after preprocessing raw data?

Yes, you can generate a data quality report after preprocessing raw data. The pipeline produces a summary of data quality metrics, detailing the handling of missing values, duplicates, and outliers to verify dataset completeness and consistency.

When do I need data preprocessing for statistical analysis workflows?

You need data preprocessing for statistical analysis workflows when dealing with messy, inconsistent, or incomplete raw data. Cleaning ensures datasets are accurate, properly typed, and free of duplicates, satisfying the high-quality input requirements for reliable analysis.