Логотип Data Wrangling

Data Wrangling

Сообщество
Tibsfox
data-wrangling

Data cleaning, transformation, reshaping, joins, missing data handling, and tidy data principles. Covers the full pipeline from raw ingestion to analysis-ready datasets -- type coercion, deduplication, outlier detection, normalization, melting/pivoting, regex extraction, and reproducible transformation chains. Use when preparing, cleaning, or transforming data for analysis.

Обзор

ИздательTibsfox
Репозиторийgsd-skill-creator
Название навыкаdata-wrangling
Звёзды
70
Форки
9
Файлы в комплекте
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — Tibsfox. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Data Wrangling в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/data-science/data-wrangling
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Tibsfox/gsd-skill-creator.git /tmp/gsd-skill-creator
mkdir -p .claude/skills
cp -r /tmp/gsd-skill-creator/examples/skills/data-science/data-wrangling .claude/skills/data-wrangling
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Data Wrangling в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Data Wrangling, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Data Wrangling не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Data Wrangling

Data wrangling is the work that sits between raw data and analysis -- the unglamorous, indispensable practice of making data trustworthy. Estimates vary, but practitioners consistently report that 60-80% of analysis time is spent wrangling. This skill covers the principles and techniques of data cleaning, transformation, reshaping, and integration, grounded in Hadley Wickham's tidy data framework and extended to the realities of messy real-world datasets.

Agent affinity: tukey (EDA-driven cleaning), nightingale (routing wrangling tasks)

Concept IDs: data-data-sources, data-data-quality, data-sampling-bias

The Wrangling Pipeline

StageGoalKey operations
1. IngestionGet data into a working environmentRead CSV/JSON/Parquet/SQL, handle encodings, parse dates
2. ProfilingUnderstand what you haveShape, dtypes, nulls, distributions, cardinality
3. CleaningFix structural problemsDedup, type coercion, standardize categories, fix encodings
4. Missing dataHandle gapsDetect patterns (MCAR/MAR/MNAR), impute or flag
5. TransformationDerive analysis-ready featuresNormalize, bin, log-transform, create indicators
6. ReshapingMatch the analysis structureMelt, pivot, tidy form, denormalize
7. IntegrationCombine sourcesJoins (inner/left/right/full/cross), concatenation, dedup post-join
8. ValidationConfirm readinessSchema checks, assertion tests, row-count reconciliation

Tidy Data Principles

Hadley Wickham (2014) formalized "tidy data" as three rules:

  1. Each variable forms a column. A single column should contain values of exactly one variable.
  2. Each observation forms a row. A single row should contain all values for exactly one observational unit.
  3. Each type of observational unit forms a table. Mixing patient demographics and lab results in one table violates this rule.

Most messy datasets violate one or more of these rules in predictable ways:

ViolationExampleFix
Column headers are values, not variable namesColumns: income_2020, income_2021, income_2022Melt to columns: year, income
Multiple variables stored in one column"M-25" encodes both sex and ageSplit into sex and age columns
Variables stored in both rows and columnsPivot table with row headers as categoriesMelt and re-pivot to tidy form
Multiple types in one tablePatient info mixed with visit recordsNormalize into two related tables
One type spread across multiple tablesMonthly CSV files with identical schemaConcatenate with a month column

Tidy data is not the only valid structure -- wide formats are sometimes more efficient for computation or display. But tidy form is the canonical starting point for analysis, and most tools (ggplot2, pandas groupby, SQL aggregation) assume it.

Cleaning Techniques

Type Coercion

Raw data arrives as strings. Coercion converts to the correct type:

  • Numeric: Strip currency symbols, commas, whitespace. Handle locale-specific decimals (, vs .). Flag non-numeric values rather than silently converting to NaN.
  • Dates: Parse with explicit format strings, never rely on automatic detection. Time zones matter -- store in UTC, display in local.
  • Categorical: Standardize case, strip whitespace, map synonyms ("USA", "US", "United States" -> "US"). Use controlled vocabularies where possible.
  • Boolean: Map common representations ("yes"/"no", "1"/"0", "true"/"false", "Y"/"N") to a single canonical form.

Deduplication

Exact duplicates are trivial to detect. The hard cases are near-duplicates:

  • Record linkage: When the same entity appears with slight variations ("John Smith" vs "J. Smith" vs "SMITH, JOHN"). Use fuzzy matching (Levenshtein distance, phonetic encoding) with a human-reviewed threshold.
  • Temporal duplicates: The same event recorded at slightly different timestamps. Define a dedup window and keep the first/last/most-complete record.
  • Key discipline: Always define what constitutes a unique observation before deduplication. A table of purchases has a different uniqueness key than a table of customers.

Outlier Detection

Outliers are not errors -- they are values that warrant investigation:

  • Statistical: Values beyond 1.5 * IQR (Tukey's fences), or beyond 3 standard deviations. These thresholds are guidelines, not laws.
  • Domain-based: A human age of 150 is an error. A human age of 95 is unusual but valid. Domain knowledge trumps statistical rules.
  • Multivariate: A value can be normal on each variable individually but extreme in combination (e.g., age 25 with 40 years of work experience). Mahalanobis distance or isolation forests detect these.

Action on outliers: Investigate first. If the value is a data entry error, correct it. If it is a measurement error, flag it. If it is a genuine extreme value, keep it and note its influence on summary statistics.

Missing Data

Missing Data Mechanisms

Rubin (1976) classified three mechanisms:

MechanismDefinitionExampleImplication
MCARMissingness is unrelated to any variableLab sample randomly droppedSafe to drop or impute; no bias
MARMissingness depends on observed variablesHigh-income respondents skip income question less oftenImputation using observed predictors is valid
MNARMissingness depends on the missing value itselfPeople with depression less likely to report depression severityNo imputation is fully valid; requires sensitivity analysis

Handling Strategies

StrategyWhen to useTrade-off
Listwise deletionMCAR, small fraction missing (<5%)Simple but loses observations
Pairwise deletionMCAR, different analyses need different subsetsKeeps more data but correlation matrices may not be positive-definite
Mean/median imputationQuick exploration onlyReduces variance, biases correlations toward zero
Regression imputationMAR, continuous variablesBetter than mean but inflates R-squared
Multiple imputationMAR, formal inferenceGold standard; accounts for imputation uncertainty
Indicator methodAny mechanism, tree-based modelsAdd a binary "was_missing" column; let the model learn missingness patterns
Domain-specific fillKnown defaults"No response" for surveys, 0 for counts that should exist

Joins and Integration

Join Types

JoinKeepsUse when
InnerRows matching in both tablesYou only want complete matches
LeftAll rows from left, matching from rightLeft table is the primary; right is enrichment
RightAll rows from right, matching from leftSymmetric to left join
Full outerAll rows from bothYou need the complete picture of both sources
CrossEvery combination of left and right rowsGenerating all pairs (e.g., all product-store combinations)
AntiLeft rows with NO match in rightFinding orphans or gaps

Join Hazards

  • Many-to-many joins: Produce a Cartesian product of matching rows. Row count explodes. Always check cardinality before joining.
  • Key mismatches: Different key formats ("001" vs 1), trailing whitespace, case differences. Standardize keys before joining.
  • Null keys: NULLs never match other NULLs in standard SQL joins. Decide how to handle null-keyed rows explicitly.
  • Post-join dedup: Joins can introduce duplicates when key relationships are not 1:1. Validate row counts after every join.

Transformation Techniques

Normalization and Scaling

MethodFormulaUse when
Min-max(x - min) / (max - min)Need values in [0, 1]; distribution shape preserved
Z-score(x - mean) / stdNeed zero-centered data; assumes roughly normal
Robust scaling(x - median) / IQROutliers present; median/IQR resistant to extremes
Log transformlog(x + 1)Right-skewed data; multiplicative relationships

Binning and Discretization

  • Equal-width: Divide range into n bins of equal size. Simple but poor for skewed data.
  • Equal-frequency (quantile): Each bin contains approximately the same number of observations. Better for skewed data.
  • Domain-driven: Age groups (0-17, 18-34, 35-54, 55+), income brackets, clinical thresholds. Always preferred when domain knowledge exists.

Feature Engineering

Feature engineering is the creative step where domain knowledge becomes computable:

  • Date decomposition: Extract year, month, day-of-week, is-weekend, days-since-event.
  • Text extraction: Regex for structured patterns (phone numbers, ZIP codes, email domains).
  • Interaction terms: Product of two variables when their combination matters (e.g., age * income).
  • Aggregation: Group-level statistics (customer's average order size, store's monthly variance).
  • Lag features: Previous period's value for time series (yesterday's temperature, last month's sales).

Reproducibility

A wrangling pipeline is only trustworthy if it is reproducible:

  1. Script everything. No manual Excel edits. Every transformation is code.
  2. Version raw data. Hash or checksum the input files. If the raw data changes, the pipeline should detect it.
  3. Document assumptions. Why did you impute with median instead of mean? Why did you drop rows with more than 50% missing? Write it down.
  4. Test transformations. Assert expected row counts, column types, value ranges, and null counts at each stage.
  5. Separate raw from derived. Never overwrite raw data. Produce a new file or table at each stage.

Common Mistakes

MistakeWhy it failsFix
Imputing before exploringYou do not know the missingness mechanismProfile first, then choose strategy
Joining without checking cardinalityMany-to-many join silently explodes row countCheck key uniqueness before joining
Dropping outliers without investigationOutliers may be the most important observationsInvestigate, then decide
Mixing cleaning and analysisImpossible to reproduce or auditSeparate wrangling script from analysis
Ignoring encoding issuesGarbled text, silent data lossSpecify encoding explicitly at ingestion
Normalizing before train/test splitData leakage -- test set statistics influence trainingFit scaler on training data only

Cross-References

  • tukey agent: Exploratory data analysis techniques that drive cleaning decisions. Primary agent for profiling and outlier investigation.
  • breiman agent: Machine learning pipelines that consume wrangled data. Feature engineering feeds directly into model training.
  • fisher agent: Experimental design that determines what data needs collecting and how.
  • statistical-modeling skill: Regression and inference methods that require clean, properly typed data.
  • ethics-governance skill: Privacy and consent considerations during data collection and integration.

References

  • Wickham, H. (2014). "Tidy Data." Journal of Statistical Software, 59(10), 1-23.
  • Rubin, D. B. (1976). "Inference and Missing Data." Biometrika, 63(3), 581-592.
  • Van Buuren, S. (2018). Flexible Imputation of Missing Data. 2nd edition. CRC Press.
  • Dasu, T. & Johnson, T. (2003). Exploratory Data Mining and Data Cleaning. Wiley.
  • Tukey, J. W. (1977). Exploratory Data Analysis. Addison-Wesley.

Часто задаваемые вопросы

Что делает навык ИИ Data Wrangling?

Data cleaning, transformation, reshaping, joins, missing data handling, and tidy data principles. Covers the full pipeline from raw ingestion to analysis-ready datasets -- type coercion, deduplication, outlier detection, normalization, melting/pivoting, regex extraction, and reproducible transformation chains. Use when preparing, cleaning, or transforming data for analysis.

Зачем использовать Data Wrangling в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Data Wrangling — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Data Wrangling в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/data-science/data-wrangling. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Data Wrangling?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Data Wrangling?

С любым количеством. В TypingMind вы можете использовать Data Wrangling с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Data Wrangling?

Навык опубликован на GitHub. Издатель — Tibsfox. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип garrytan

Gstack Openclaw Ceo Review

garrytan
СообществоПопулярный

Используйте этот навык, если вас просят проверить план, подвергнуть предложение критическому разбору, провести проверку в стиле CEO, найти слабые места в подходе, расширить рамки проекта или решить, стоит ли увеличить или сократить план.

19.9K
133.5K
Инструкции
Открыть
Логотип JuliusBrussee

Caveman Stats

JuliusBrussee
СообществоПопулярный

Показывает записанные данные об использовании токенов и чтении из кэша, а также атрибуцию режимов для текущего сеанса Claude Code или помогает найти встроенный отчёт об использовании на хосте. Триггер: /caveman-stats.

6.2K
106.3K
Инструкции
Открыть
Логотип pytorch

Ci Metrics

pytorch
ОрганизацияПопулярный

Запрос данных о CI PyTorch, GitHub Actions, HUD, Grafana и показателях инфраструктуры. Используйте этот навык, когда пользователи спрашивают о длительности CI, сбоях заданий, времени ожидания в очереди, тенденциях рабочих процессов, состоянии раннеров, данных панелей мониторинга или показателях…

31K
103.6K
Файлы: 1
Открыть
Логотип openclaw

Notcrawl

openclaw
ОрганизацияПопулярный

Архив Notion: поиск, актуальность синхронизации, страницы и базы данных, экспорт в Markdown, подсчёт записей в SQL и работа с репозиторием Notcrawl.

82.2K
391K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇