Skip to content
Back to skills

Data Cleaning Patterns

ASecurity

Clean messy datasets nulls outliers duplicates normalization

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
ai-agentspython

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill data-cleaning-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Cleaning Patterns?

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

Security grade badge for Data Cleaning Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-data-cleaning-patterns/badge)](https://www.skillsdirectory.com/skills/loopyluci-data-cleaning-patterns)

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: data-cleaning-patterns
description: "Clean messy datasets nulls outliers duplicates normalization"
---

# Data Cleaning Patterns

## With pandas
```python
import pandas as pd

df = pd.read_csv("data.csv")

# Drop duplicates
df = df.drop_duplicates()

# Handle nulls
df = df.fillna(0)           # Fill with default
df = df.dropna(subset=["id"])  # Drop rows missing key

# Outliers (IQR method)
Q1, Q3 = df["price"].quantile([0.25, 0.75])
iqr = Q3 - Q1
mask = (df["price"] >= Q1 - 1.5*iqr) & (df["price"] <= Q3 + 1.5*iqr)
df = df[mask]

# Type coercion
df["date"] = pd.to_datetime(df["date"])
df["amount"] = pd.to_numeric(df["amount"], errors="coerce")
```

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.