diff --git a/domain/scenario_export/scenario_sheet.py b/domain/scenario_export/scenario_sheet.py index 9bdb5ff95..7a0ebfb68 100644 --- a/domain/scenario_export/scenario_sheet.py +++ b/domain/scenario_export/scenario_sheet.py @@ -108,4 +108,14 @@ def shape_scenario_sheet( properties: Sequence[PropertyScenarioData], ) -> ExportSheet: """Shape one Scenario's Properties into a wide export sheet (ADR-0065).""" - raise NotImplementedError + columns: tuple[str, ...] = ("property_id", "landlord_property_id") + rows: list[dict[str, Any]] = [] + for prop in properties: + row: dict[str, Any] = { + "property_id": prop.property_id, + "landlord_property_id": prop.landlord_property_id, + } + for measure in prop.measures: + row[measure.measure_type] = measure.estimated_cost + rows.append(row) + return ExportSheet(columns=columns, rows=tuple(rows))