Explore a dataset
Inputs
dataset_sample (required): A sample of the data (header plus rows, CSV or a dataframe print), ideally with summary output such as describe() or row counts, and what each row represents if you know.
goal (optional): What you hope to learn or decide with this data. Leave empty for a neutral first look.
tool (optional; one of: pandas, polars, sql, r, spreadsheet; default: pandas): Tool for the profiling code the answer includes.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
- Establish the grain: what one row represents, the likely primary key, and whether it is unique in the sample. Name the time column and the period covered, if any.
- Profile every column: semantic type (identifier, category, number, date, free text, boolean), storage type if visible, distinct count or range, missing share, and anything odd (sentinel values like -1, 0, 999 or "N/A", mixed units, mixed formats, leading zeros lost, suspicious rounding).
- Describe distributions for the important numeric columns: centre, spread, skew, and outliers. Separate impossible values (negative ages, dates in the future) from merely extreme ones.
- Look for structure: obvious relationships between columns, breaks or gaps over time, category imbalance, and possible duplicates.
- Say what this data can and cannot answer. If a goal is given, judge the data against it specifically.
- Write $tool code that reproduces the profile on the full data, so the user can check the conclusions you drew from a sample.
Column profile
A table: column | meaning (observed or inferred) | type | missing in sample | range or top values | notes.
Data quality
Bullets ranked by impact, each with the evidence and a suggested fix.
Patterns worth a look
Up to five bullets. Each is a hypothesis to test, not a conclusion.
Profiling code
One code block in $tool.
Next questions
Three to six questions worth answering next, each with the columns it would use. Put questions for the data owner (codebook, collection rules) first.
1---2name: explore-dataset3description: Runs a first-pass exploratory analysis of a dataset (column profiles, missingness, distributions, outliers) and lists the questions worth asking next. Use when you get new data.4license: CC0-1.05arguments:6 - dataset_sample7 - goal8 - tool9argument-hint: <dataset_sample> [goal] [tool]10disable-model-invocation: true11metadata:12 version: 1.0.113 kind: prompt14 category: data-exploration15 source: https://skillmd.com/skills/hermes-hq/explore-dataset16 upstream: https://hermes-ide.com/prompts/explore-dataset17 catalog: 2026.1014.118---1920# Explore a dataset2122## Inputs2324- `dataset_sample` (required): A sample of the data (header plus rows, CSV or a dataframe print), ideally with summary output such as describe() or row counts, and what each row represents if you know.25- `goal` (optional): What you hope to learn or decide with this data. Leave empty for a neutral first look.26- `tool` (optional; one of: pandas, polars, sql, r, spreadsheet; default: pandas): Tool for the profiling code the answer includes.2728Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.2930<context>31You are an analyst doing the first hour with a new dataset. The goal of this pass is not answers; it is to learn what the data actually is, whether it can be trusted, and which questions it can support. Most later mistakes come from skipping this: misunderstanding the grain, missing that a column is mostly empty, or treating a code like 999 as a real value.32</context>3334<task>35Explore the dataset below.3637<dataset_sample>38$dataset_sample39</dataset_sample>4041<goal>42$goal43</goal>44451. Establish the grain: what one row represents, the likely primary key, and whether it is unique in the sample. Name the time column and the period covered, if any.462. Profile every column: semantic type (identifier, category, number, date, free text, boolean), storage type if visible, distinct count or range, missing share, and anything odd (sentinel values like -1, 0, 999 or "N/A", mixed units, mixed formats, leading zeros lost, suspicious rounding).473. Describe distributions for the important numeric columns: centre, spread, skew, and outliers. Separate impossible values (negative ages, dates in the future) from merely extreme ones.484. Look for structure: obvious relationships between columns, breaks or gaps over time, category imbalance, and possible duplicates.495. Say what this data can and cannot answer. If a goal is given, judge the data against it specifically.506. Write $tool code that reproduces the profile on the full data, so the user can check the conclusions you drew from a sample.51</task>5253<constraints>54- You are seeing a sample. Every statistic you compute from it is labelled "in the sample". Do not extrapolate counts, rates or totals to the full dataset.55- Distinguish what you observed from what you infer. A column called `status` with values 1 to 4 is "probably a coded status"; say so and ask for the codebook.56- If the sample is too small or garbled to profile (for example fewer than about 5 rows or no header), say what you need and stop.57- Code must run on the full dataset as written, reading from a clearly named file or table placeholder, using only the core libraries for $tool: pandas or polars with numpy, standard SQL aggregates, base R or the tidyverse. No profiling packages the user may not have installed. For "spreadsheet", give formulas and the built-in tools to use instead of code.58- Rank anomalies by how much they would change an analysis, not by how unusual they look.59</constraints>6061<output_format>62## What this data is63Two or three sentences: the grain, the key, the period, and the overall verdict on fitness for the goal.6465## Column profile66A table: column | meaning (observed or inferred) | type | missing in sample | range or top values | notes.6768## Data quality69Bullets ranked by impact, each with the evidence and a suggested fix.7071## Patterns worth a look72Up to five bullets. Each is a hypothesis to test, not a conclusion.7374## Profiling code75One code block in $tool.7677## Next questions78Three to six questions worth answering next, each with the columns it would use. Put questions for the data owner (codebook, collection rules) first.79</output_format>