Use when writing acceptance criteria for a task - express each as an observable Given/When/Then that QA can execute, including negative cases
The English summary is being prepared. Showing the original description.
Use when you meet a new dataset, table, file or source, before building features or a model on it, or when a number looks wrong — profile grain, keys, nulls, cardinality, time coverage and target balance, and persist what you learn as code
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
Exploration answers "what is actually in this data?" before anything is built on it. In this role exploration has a deliverable: the facts you learn become a schema, a test or a documented assumption in the repository — not a notebook cell nobody re-runs.
Core principle: every surprise you find in EDA ends up as a check that would catch it next time (data-validation-contracts) or a written assumption in your closing message.
Answer these before looking at any distribution:
def assert_grain(df: pd.DataFrame, key: list[str]) -> None:
dupes = df.duplicated(subset=key, keep=False)
if dupes.any():
raise ValueError(f"{int(dupes.sum())} rows share a {key} key, e.g. {df.loc[dupes, key].head(3).to_dict('records')}")
| Column kind | Look at |
|---|---|
| All | null rate, distinct count, cardinality ratio, top and bottom values |
| Numeric | min, p1, p25, median, mean, p75, p99, max; zeros; negatives where impossible |
| String / category | empty strings, whitespace, case variants ("US", "us", "USA"), unexpected categories |
| Timestamp | min/max, future dates, gaps per day/week, timezone (naive vs aware) |
| Target | class balance or distribution, by time period |
Fast paths:
duckdb.sql("SUMMARIZE SELECT * FROM 'data/events/*.parquet'").df()
def profile(df: pd.DataFrame) -> pd.DataFrame:
return pd.DataFrame({
"dtype": df.dtypes.astype(str),
"null_rate": df.isna().mean(),
"n_unique": df.nunique(dropna=True),
"example": df.apply(lambda s: s.dropna().iloc[0] if s.notna().any() else None),
})
Profile on the full data or a documented sample — a 1,000-row head of a file sorted by date tells you about one day.
| Signal | Likely cause | Decide |
|---|---|---|
| Null rate > 5% in a key column | upstream gap, late arrival, optional field | impute in the pipeline, exclude with a reason, or flag |
| Placeholder values (0, -1, 999999, "N/A", "test", 1970-01-01) | defaults standing in for missing | convert to NA at ingestion, with a test |
| One value with suspicious frequency | a default or a backfill | confirm with the source owner, or note it |
| ID with far fewer distinct values than rows expected | wrong join key or truncated extract | stop and trace before modelling |
| Status says done but the done-timestamp is null | cross-column inconsistency | a schema check across columns |
| Values all ending in 0 or 5 | estimates, not measurements | note it as a precision limit |
| Distribution shift between old and recent months | drift, a tracking change, a definition change | evaluate on the recent period separately |
Do not silently drop outliers: decide whether each group is an error (fix or remove, with a count), a genuine extreme (keep, use robust statistics) or another population (segment it).
merged = events.merge(users, on="user_id", how="left", validate="many_to_one", indicator=True)
unmatched = (merged["_merge"] == "left_only").mean()
age becomes NA")./tmp/tt-<task key>/ while you work; commit them only where the repository keeps reports._id.No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Use when writing acceptance criteria for a task - express each as an observable Given/When/Then that QA can execute, including negative cases
The English summary is being prepared. Showing the original description.
Use when the diff adds or changes an endpoint, resolver, RPC, job or query that takes an object id, a role check, a request binding or a tenant filter - BOLA/IDOR, function-level authorization, mass assignment and tenant scoping
The English summary is being prepared. Showing the original description.
Use on every UI change - semantic HTML, labels for controls, keyboard-navigable dialogs/menus, visible focus, and never color as the only signal
The English summary is being prepared. Showing the original description.
Use when a task changes any screen, form, dialog, menu or control - Lighthouse/axe scan of the changed screens, a keyboard walk, and the thresholds that fail a task
The English summary is being prepared. Showing the original description.
How to work a task returned with review, QA or UAT findings. Use when a task is in need_revision or PR review comments are in your context.
The English summary is being prepared. Showing the original description.
Use when the repository keeps its alerting in code, or a person asks for alerts outside TaskTrooper - PrometheusRule YAML, a Cloud Monitoring alert policy in Terraform, a Datadog monitor, each routed to TaskTrooper's alert ingest URL so it opens an incident here
The English summary is being prepared. Showing the original description.