AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Clean Dataset

skill-ericwang915-data-scientist-skills-clean-dataset · by ericwang915

Detect and fix common data quality issues: missing values, duplicates, type mismatches, encoding problems, and inconsistent formats. Use when starting a new analysis, preparing data for modeling, or auditing a dataset for issues.

No reviews yet
0 installs
30 views
0.0% view→install

Install

$ agentstack add skill-ericwang915-data-scientist-skills-clean-dataset

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-ericwang915-data-scientist-skills-clean-dataset)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Clean Dataset? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Clean Dataset

Purpose

Systematically identify and resolve data quality issues in any tabular dataset. This skill provides a structured cleaning pipeline that handles the most common problems analysts encounter.

How It Works

Step 1: Initial Assessment

  • Load the dataset and display shape, dtypes, and first/last rows
  • Calculate the percentage of missing values per column
  • Identify duplicate rows (exact and near-duplicates)
  • Check for mixed data types within columns
  • Detect encoding issues (mojibake, special characters)

Step 2: Missing Value Analysis

  • Classify missing data mechanism: MCAR, MAR, or MNAR
  • Visualize missing patterns (nullity matrix)
  • Recommend strategy per column:
  • Drop: >60% missing or not analytically useful
  • Fill (simple): Median for numeric, mode for categorical, forward-fill for time series
  • Impute (advanced): KNN or MICE when relationships exist between features
  • Generate Python code for each fix

Step 3: Duplicate Detection & Resolution

  • Identify exact duplicates
  • Find near-duplicates using fuzzy matching on key columns
  • Recommend: keep first, keep last, or aggregate
  • Generate deduplication code

Step 4: Type Correction & Standardization

  • Convert string numbers to numeric (handling locale-specific formats)
  • Parse date strings into datetime objects
  • Standardize categorical values (case, whitespace, typos)
  • Convert boolean-like strings to actual booleans
  • Detect and fix encoding issues (UTF-8 normalization)

Step 5: Validation & Report

  • Re-run initial assessment to confirm fixes
  • Generate a before/after comparison summary
  • Produce a cleaning log documenting every transformation
  • Suggest next steps (EDA, feature engineering)

Usage Examples

Example 1: CSV with mixed issues

Upload your dataset and say:
"Clean this dataset — it has missing values, some duplicate customer records,
and the date columns are in different formats"

Example 2: Automated pipeline

"Generate a reusable Python cleaning script for this data schema
that I can run on new data batches"

Example 3: Focused cleaning

"Just fix the missing values in the revenue and churn columns —
don't touch anything else"

Key Capabilities

  • Multi-format support: CSV, Excel, Parquet, JSON, SQL query results
  • Automated detection: Finds issues without manual inspection
  • Code generation: Produces pandas/polars code for reproducibility
  • Logging: Documents every change for audit trails
  • Batch-ready: Generates reusable scripts for recurring data pipelines

Tips for Best Results

  1. Upload the actual data or paste a sample — real data reveals real problems
  2. Mention known issues — if you know certain columns are problematic, say so
  3. Specify priorities — tell me which columns matter most for your analysis
  4. State the end goal — cleaning for a dashboard is different from cleaning for ML

Output Format

You'll receive:

  • Issue Report: Summary of all detected problems with severity ratings
  • Cleaning Plan: Recommended fix for each issue with rationale
  • Python Code: Ready-to-run pandas/polars code implementing all fixes
  • Validation Summary: Before/after comparison confirming improvements
  • Cleaning Log: Audit trail of all transformations applied

Further Reading

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.