Dataset fitness check before analysis
Use when a dataset has arrived and you need to know what it can support before analysing it.
Fill in before running
Replace each placeholder with your own detail. The more specific you are, the less the model invents.
- {{PLANNED_ANALYSIS}}
- {{DATASET_DESCRIPTION}}
- {{SAMPLE_ROWS}}
- {{COLLECTION_METHOD}}
Getting a better result
- Send a sample of at least a few hundred rows spread across the period, not the first hundred.
- Ask who generated the extract and when; regenerated exports rarely match the first one.
- Keep the cleaning steps as code, since the analysis will be re-run and the steps will be forgotten.
Questions about this prompt
When do I use this rather than starting the analysis?
When a dataset has arrived from elsewhere and you do not know how it was made. An hour here is cheaper than presenting a result and then discovering the collection method changed part way through the period. The verdict comes first and is one of fit, fit with caveats, or not fit.
What do I need in front of me?
The analysis you intend to run, the dataset description with row count, date range and columns, a sample of rows, and how the data was collected. Send a few hundred rows spread across the period rather than the first hundred, or the checks on gaps and mid period changes have nothing to look at.
What comes back?
The verdict line, then a check table covering grain, duplicates, missing values by column, date coverage, placeholder values, outliers, collection changes and survivorship, each with its evidence and effect. Then unusable columns, ordered cleaning steps with the rows affected, and questions about collection. The cleaning steps are what you keep.
What is the mistake that costs me here?
Cleaning as you go instead of writing the steps down. Every exclusion has to be repeatable by somebody else, and the analysis gets re-run long after you have forgotten what you dropped, so keep the steps as code. Treat unverified checks as unverified too: a sample too small to judge is not a pass.