AGENT SKILL

skill-137

Comprehensive strategies for cleaning and preparing various types of data for analysis across any domain. This skill provides broad guidelines for data cleaning without delving into specific contexts or applications.

License 许可
MIT
最近更新
2026-06-04
Stars
★ 8
Forks
2

01 前言 Front Matter

name
skill-137
description
Comprehensive strategies for cleaning and preparing various types of data for analysis across any domain. This skill provides broad guidelines for data cleaning without delving into specific contexts or applications.

03 SKILL.md 正文

Data Cleaning and Preparation

Overview

Data Cleaning and Preparation is an essential step in the data analysis process that applies to any dataset, regardless of its source or type. Properly cleaned data is critical for generating reliable insights and driving informed decisions across various fields, including healthcare, finance, and marketing.

This skill covers:

  • Missing Value Handling: Strategies to address incomplete data entries.
  • Outlier Detection: Techniques to identify and manage anomalies in datasets.
  • Data Transformation: Methods for converting data into suitable formats for analysis.
  • Normalization and Standardization: General approaches to standardize data across different formats and scales.

When to Use This Skill

Use this skill when:

  • You are required to clean any dataset prior to analysis.
  • You encounter datasets with missing values, outliers, or inconsistencies.
  • Preparing data from multiple sources for integration and reporting.
  • You need to ensure data quality before conducting any statistical analysis.

Key Data Cleaning Techniques

1. Handling Missing Values

Missing values can significantly impact data quality. Common strategies include:

  • Removing Rows: Eliminate entries with excessive missing values.
  • Imputation: Replace missing values with the mean, median, or mode, or use advanced methods like KNN or regression.

2. Outlier Detection

Outliers can skew data analysis. Techniques include:

  • Z-Score Method: Identify outliers by measuring how far away from the mean a data point is.
  • IQR Method: Use the interquartile range to detect outliers based on the distribution of the data.

3. Data Transformation

Data may require transformation for proper analysis:

  • Log Transformation: Apply logarithmic transformation for positively skewed data.
  • Normalization: Scale data to fit within a specific range, commonly between 0 and 1.

4. Normalization and Standardization

Use common practices to standardize data:

  • Min-Max Normalization: Scale the data based on its minimum and maximum values.
  • Z-Score Normalization: Transform data into a standardized format with a mean of 0 and a standard deviation of 1.

Example Code Snippet for Missing Value Imputation

import pandas as pd

df = pd.DataFrame({
    'A': [1, 2, None, 4],
    'B': [None, 2, 3, 4]
})

df['A'].fillna(df['A'].mean(), inplace=True)
df['B'].fillna(df['B'].median(), inplace=True)
print(df)

Conclusion

While this skill provides a general overview of data cleaning and preparation techniques, users are encouraged to adapt these methods to their specific contexts and datasets. Efficient data preparation lays the foundation for successful data analysis and insightful decision-making.

04 同仓库更多 Skills

legendtkl
legendtkl/agentic-skill-router

foo

A test skill named foo

★ 8
legendtkl
legendtkl/agentic-skill-router

bar

飞书 — bar with quoted Chinese

★ 8
legendtkl
legendtkl/agentic-skill-router

agentic-skill-router

First use any clearly matching enabled local/user Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-trim

Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-transcode

Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-thumbnail

Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.

★ 8