Explore a Dataset
Purpose
Understand what a dataset really contains, how trustworthy it is and what it can answer, before anyone builds conclusions on it, and produce a short profile others can reuse.
When to use
- A new source, extract or file must be used for analysis or modeling.
- Numbers from a dataset look wrong and the cause is unknown.
- A data catalog entry or quality rule set needs factual input.
When not to use
- The question and method are already clear. Use
analysis-plan.
- Formal validation rules must be written for a pipeline. Use
data-quality-rules.
- Features for a model are being designed. Use
feature-engineering-plan.
Inputs
Required:
- The dataset description: schema (column names and types) plus either a sample, profiling output or summary statistics.
Optional, improves quality:
- Business meaning of columns, source system, extraction logic.
- The intended use (analysis, dashboard, model).
If only a column list is available, produce the exploration plan with the checks to run, and mark all findings [TBD]. Never fabricate statistics.
Process
- Establish grain: what one row represents; verify the candidate key is unique and non-null.
- Check coverage: row count, time range, gaps by day/week, sudden volume jumps (often backfills or tracking changes).
- Profile each column by type: numeric (min, percentiles, mean vs median, zeros, negatives), categorical (cardinality, top values, rare/misspelled levels), dates (range, future dates, default dates like 1900-01-01), text/IDs (format, length).
- Quantify missingness per column and check whether it is random or tied to a segment or period.
- Detect duplicates (exact and on business key) and inconsistent units, currencies or time zones.
- Identify outliers with a stated rule (IQR, percentile, domain limits) and classify: error, legitimate extreme, or unknown.
- Examine relationships: key correlations, cross-tabs between important categoricals, referential integrity to related tables.
- Flag personal or sensitive data columns (name, e-mail, phone, national ID, location) and recommend masking or exclusion (KVKK/GDPR).
- Judge fitness for the intended use: usable as-is, usable with listed fixes, or not usable.
- Record issues with severity and the next check or owner.
- Label every inference
[ASSUMPTION] and move unsupported items to open questions. If the user's goal continues, suggest data-quality-rules to turn issues into checks, or analysis-plan / feature-engineering-plan for the next analytical step.
Output format
# Data Exploration: <dataset>
| Field | Value |
|---|---|
| Grain | <one row = ...> |
| Rows / time range | ... |
| Candidate key unique? | Yes / No (<n> dupes) |
| Intended use | ... |
| Fitness | Usable / Usable with fixes / Not usable |
## Column Profile
| Column | Type | Null % | Distinct | Notes (range, top values, anomalies) |
|---|---|---|---|---|
## Key Findings
1. ...
## Data Quality Issues
| Issue | Columns | Severity | Suggested fix / owner |
|---|---|---|---|
## Sensitive Data
- <column> – <category> – <mask / drop / keep with reason>
## Open Questions
1. ...
Quality checklist
Common pitfalls
- Trusting the mean on skewed data. Report median and percentiles.
- Treating sentinel values (0, -1, 9999, 1900-01-01) as real values.
- Ignoring the time dimension; many issues appear only as step changes over time.
Example
Input: 250k orders, columns order_id, customer_id, order_ts, amount, currency, status, channel; profile shows 312 duplicate order_id, amount min -45.00, currency has "TRY" and "TL".
Excerpt of output:
- Candidate key unique? No – 312 duplicate order_id, likely status updates appended as rows
[confirm with source owner].
- Issue: Negative amounts (refunds?) mixed with sales – severity High for revenue metrics.
- Issue: Currency values "TRY" and "TL" represent the same currency – normalize.
1---2name: data-exploration3description: "Guides a structured exploratory data analysis of an unfamiliar dataset - structure, grain, distributions, nulls, duplicates, outliers, time coverage, relationships and quality issues - and reports findings and fitness for use. Use when a new table, extract or file arrives, before building a model, metric or dashboard on it, or when someone asks \"what is in this data?\"."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/data-exploration7 version: "1.0.0"8 language: en9 category: 08-data10 role: data-analyst11 area: analytics12 title: "Explore a dataset"13 related: "analysis-plan, data-quality-rules, metric-definition, feature-engineering-plan, data-catalog-entry"14 prompt: "Explore this dataset: a CSV of 250k e-commerce orders with columns order_id, customer_id, order_ts, amount, currency, status, channel. Here is the profile output."15---1617# Explore a Dataset1819## Purpose20Understand what a dataset really contains, how trustworthy it is and what it can answer, before anyone builds conclusions on it, and produce a short profile others can reuse.2122## When to use23- A new source, extract or file must be used for analysis or modeling.24- Numbers from a dataset look wrong and the cause is unknown.25- A data catalog entry or quality rule set needs factual input.2627## When not to use28- The question and method are already clear. Use `analysis-plan`.29- Formal validation rules must be written for a pipeline. Use `data-quality-rules`.30- Features for a model are being designed. Use `feature-engineering-plan`.3132## Inputs33Required:34- The dataset description: schema (column names and types) plus either a sample, profiling output or summary statistics.3536Optional, improves quality:37- Business meaning of columns, source system, extraction logic.38- The intended use (analysis, dashboard, model).3940If only a column list is available, produce the exploration plan with the checks to run, and mark all findings `[TBD]`. Never fabricate statistics.4142## Process431. Establish grain: what one row represents; verify the candidate key is unique and non-null.442. Check coverage: row count, time range, gaps by day/week, sudden volume jumps (often backfills or tracking changes).453. Profile each column by type: numeric (min, percentiles, mean vs median, zeros, negatives), categorical (cardinality, top values, rare/misspelled levels), dates (range, future dates, default dates like 1900-01-01), text/IDs (format, length).464. Quantify missingness per column and check whether it is random or tied to a segment or period.475. Detect duplicates (exact and on business key) and inconsistent units, currencies or time zones.486. Identify outliers with a stated rule (IQR, percentile, domain limits) and classify: error, legitimate extreme, or unknown.497. Examine relationships: key correlations, cross-tabs between important categoricals, referential integrity to related tables.508. Flag personal or sensitive data columns (name, e-mail, phone, national ID, location) and recommend masking or exclusion (KVKK/GDPR).519. Judge fitness for the intended use: usable as-is, usable with listed fixes, or not usable.5210. Record issues with severity and the next check or owner.5311. Label every inference `[ASSUMPTION]` and move unsupported items to open questions. If the user's goal continues, suggest `data-quality-rules` to turn issues into checks, or `analysis-plan` / `feature-engineering-plan` for the next analytical step.5455## Output format56```markdown57# Data Exploration: <dataset>58| Field | Value |59|---|---|60| Grain | <one row = ...> |61| Rows / time range | ... |62| Candidate key unique? | Yes / No (<n> dupes) |63| Intended use | ... |64| Fitness | Usable / Usable with fixes / Not usable |6566## Column Profile67| Column | Type | Null % | Distinct | Notes (range, top values, anomalies) |68|---|---|---|---|---|6970## Key Findings711. ...7273## Data Quality Issues74| Issue | Columns | Severity | Suggested fix / owner |75|---|---|---|---|7677## Sensitive Data78- <column> – <category> – <mask / drop / keep with reason>7980## Open Questions811. ...82```8384## Quality checklist85- [ ] Grain and key uniqueness are stated and verified.86- [ ] Every statistic comes from the provided profile or sample; missing ones are `[TBD]`.87- [ ] Missingness is checked for patterns, not only percentages.88- [ ] Outlier rule is explicit, and outliers are classified, not silently removed.89- [ ] Sensitive columns are flagged with a handling recommendation.90- [ ] A clear fitness-for-use verdict is given.91- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.9293## Common pitfalls94- Trusting the mean on skewed data. Report median and percentiles.95- Treating sentinel values (0, -1, 9999, 1900-01-01) as real values.96- Ignoring the time dimension; many issues appear only as step changes over time.9798## Example99Input: 250k orders, columns order_id, customer_id, order_ts, amount, currency, status, channel; profile shows 312 duplicate order_id, amount min -45.00, currency has "TRY" and "TL".100101Excerpt of output:102- Candidate key unique? No – 312 duplicate order_id, likely status updates appended as rows `[confirm with source owner]`.103- Issue: Negative amounts (refunds?) mixed with sales – severity High for revenue metrics.104- Issue: Currency values "TRY" and "TL" represent the same currency – normalize.