⑦ result.json을 측정값 3개만 남기고 정리
산식·목표·판정·상세 포인터를 meta로 옮김. 값 변화 없음 (10,383건/년 PASS). - result.json: 협상 건수 / 측정기간_일 / 연환산_건 - data_count_meta.json: 기존 항목 + 산식·목표_건년·verdict - 07 provenance에 두 파일의 역할 분담 명시 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014sLpiFCT7Lj78iLwPbVx7a
This commit is contained in:
1 parent
1226b845b8
commit
def79af03c
5 files changed
+12
-17
No files matched your search
@@ -6,8 +6,8 @@
|
||||
계획서 목표 산정 근거는 2023년 운용 실적 9,407건으로, 같은 단위(레코드 1행 = 1건)다.
|
||||
|
||||
사용: python aggregate.py [--source ../../testdata/total_data.xlsx] [--target 10000]
|
||||
출력: data/data_count_meta.json 출처·기간·월별 건수·상태 분포
|
||||
result.json 건수 + 연환산 + PASS/FAIL
|
||||
출력: data/data_count_meta.json 출처·기간·월별 건수·상태 분포·산식·목표·판정
|
||||
result.json 건수 + 기간 + 연환산
|
||||
"""
|
||||
import argparse
|
||||
import json
|
||||
@@ -61,6 +61,9 @@ def main():
|
||||
"월별_건수": dict(sorted(Counter(d.strftime("%Y-%m") for d in dates).items())),
|
||||
"협상상태": dict(Counter(r[idx["협상상태"]] for r in rows)),
|
||||
"고유_견적번호": len({r[idx["견적번호"]] for r in rows}),
|
||||
"산식": "누적 건수 ÷ 측정 기간(일) × 365 (협상 레코드 1행 = 1건)",
|
||||
"목표_건년": args.target,
|
||||
"verdict": "PASS" if yearly and yearly >= args.target else "FAIL",
|
||||
"기준선": BASELINE,
|
||||
}, ensure_ascii=False, indent=1), encoding="utf-8")
|
||||
|
||||
@@ -68,10 +71,6 @@ def main():
|
||||
"협상 건수": len(rows),
|
||||
"측정기간_일": days,
|
||||
"연환산_건": yearly,
|
||||
"산식": "누적 건수 ÷ 측정 기간(일) × 365 (협상 레코드 1행 = 1건)",
|
||||
"목표_건년": args.target,
|
||||
"verdict": "PASS" if yearly and yearly >= args.target else "FAIL",
|
||||
"상세": "data/data_count_meta.json",
|
||||
}
|
||||
(HERE / "result.json").write_text(
|
||||
json.dumps(result, ensure_ascii=False, indent=1), encoding="utf-8")
|
||||
|
||||
@@ -26,5 +26,8 @@
|
||||
"협상거부": 3089
|
||||
},
|
||||
"고유_견적번호": 2156,
|
||||
"산식": "누적 건수 ÷ 측정 기간(일) × 365 (협상 레코드 1행 = 1건)",
|
||||
"목표_건년": 10000.0,
|
||||
"verdict": "PASS",
|
||||
"기준선": "계획서 성능지표표 기준선 — 2023년 운용 협상 데이터 9,407건 (동일 단위)"
|
||||
}
|
||||
@@ -1,9 +1,5 @@
|
||||
{
|
||||
"협상 건수": 10315,
|
||||
"측정기간_일": 362.62,
|
||||
"연환산_건": 10383,
|
||||
"산식": "누적 건수 ÷ 측정 기간(일) × 365 (협상 레코드 1행 = 1건)",
|
||||
"목표_건년": 10000.0,
|
||||
"verdict": "PASS",
|
||||
"상세": "data/data_count_meta.json"
|
||||
"연환산_건": 10383
|
||||
}
|
||||
Reference in new issue
Block a user