Daily kWh, Coverage and Day Status
Learning objective: compute the daily KPI from the cleaned intervals and label every day with a status a reader can understand without the code.
| Field | Definition |
|---|---|
| observed_kwh | Sum of valid, deduplicated, non-conflicting intervals for that local date; empty when the day is blocked or has no valid reading |
| valid_intervals | Number of such intervals |
| expected_intervals | 96 for every day in this case |
| coverage_ratio | valid_intervals / expected_intervals, to 4 decimals |
| quality_status | complete, partial, blocked or no_data |
| Status | When | observed_kwh |
|---|---|---|
| complete | 96 of 96 valid intervals, no conflict | Sum of the 96 values |
| partial | At least one but fewer than 96 valid intervals, no conflict | Sum of the valid values only |
| blocked | At least one interval has a conflict (Q07) | Empty, with the reason in the quality log |
| no_data | No valid interval at all | Empty |
Info
A day has 90 valid intervals, no conflicts and six missing intervals. What are its coverage and status?