Build a reproducible analysis report

Keep the raw input, document transformations, and report both a result and its coverage.

On this page

Record inputs and build reusable steps

Keep a read-only source copy and record the extraction date, filters, covered period, column meanings, and software versions. Store transformation code and parameter values. In a notebook, restart and run all cells in order to check that hidden state is unnecessary.

Calculate and report coverage with a KPI

Present the metric, units, comparison, and exclusions in the same report. Distinguish the eligible records from those with usable values. Add checks that catch schema changes or unexpected row losses before writing the final chart.

import pandas as pd

amount = pd.Series([4.0, None, 8.0, 2.0])
used = int(amount.notna().sum())
assert 0 < used <= len(amount)
print(f"Usable total: {amount.sum(min_count=1):.1f}")
print(f"Coverage: {used}/{len(amount)}")
Example output
Usable total: 14.0
Coverage: 3/4

Official references