How hzshaz/group5_finalproj_pfds works
This repository is a reproducible Philippine WFP food-price analysis workflow for policy analysts and researchers. The main path is to acquire and validate price and market data, clean and geographically integrate it, answer three questions (rice trends, regional staple comparisons, and food inflation), then export tables, charts, and an offline comparison website. The map preserves those distinct analysis stages and the quality-evidence capability. Edges follow the shown pipeline and entry-point calls; website internals and some export details were not sampled.
Main entry points: pipeline.py Load and analyze · main.py Workflow entry point · export.py Export results · acquisition.py Acquire snapshots
Components 19
Data preparation
- Source snapshots
data/raw - Workflow entry point
main.py - Acquire snapshots
foodprices/acquisition.py - Validate inputs
foodprices/validation.py - Clean prices
foodprices/cleaning.py - Join geography
foodprices/integration.py - Load and analyze
foodprices/pipeline.py
Price analysis
- Rice trend (Q1)
foodprices/analysis.py - Regional staples (Q2)
foodprices/analysis.py - Food inflation (Q3)
foodprices/analysis.py - Coverage summary
foodprices/analysis.py - Inflation uncertainty
foodprices/numeric.py
Results and presentation
- Export results
foodprices/export.py - Static charts
foodprices/visualization.py - Result tables
outputs - Offline comparison site
site
Quality assurance
- Quality evidence
foodprices/quality.py
Other components
- Analyst
- WFP data
Connections 20
- Analyst → Workflow entry point: runs workflow
README.md - WFP data → Acquire snapshots: provides files
foodprices/acquisition.py - Acquire snapshots → Source snapshots: checks and caches
foodprices/acquisition.py - Workflow entry point → Load and analyze: loads and analyzes
main.py - Load and analyze → Acquire snapshots: acquires inputs
foodprices/pipeline.py - Load and analyze → Validate inputs: validates inputs
foodprices/pipeline.py - Load and analyze → Clean prices: cleans prices
foodprices/pipeline.py - Load and analyze → Join geography: joins geography
foodprices/pipeline.py - Load and analyze → Coverage summary: calculates coverage
foodprices/pipeline.py - Load and analyze → Rice trend (Q1): calculates Q1
foodprices/pipeline.py - Load and analyze → Regional staples (Q2): calculates Q2
foodprices/pipeline.py - Load and analyze → Food inflation (Q3): calculates Q3
foodprices/pipeline.py - Food inflation (Q3) → Inflation uncertainty: estimates ranges
foodprices/numeric.py - Workflow entry point → Export results: writes results
main.py - Workflow entry point → Static charts: saves charts
main.py - Workflow entry point → Join geography: uses region names
main.py - Export results → Result tables: writes tables
foodprices/export.py - Export results → Offline comparison site: writes site data
foodprices/export.py - Export results → Quality evidence: imports evidence checks
foodprices/export.py - Analyst → Offline comparison site: compares prices
README.md