Clean messy datasets nulls outliers duplicates normalization
Scanned 9/10/2026
Install to Claude Code
npx -y skills add LoopyLuci/Skills --skill data-cleaning-patterns --agent claude-codeInstalls 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 automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-data-cleaning-patterns)More formats (shields.io, HTML) on the badges page.
---
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")
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!