How anshikas18/macrolens-economic-intelligence works
MacroLens turns World Bank indicators into economic analysis for interactive Power BI dashboards. The documented user workflow is data extraction, transformation, database loading, then dashboard exploration. The sampled pipeline does invoke its extract, transform, and load scripts in sequence, but the shown src/load.py writes processed CSVs rather than PostgreSQL records; database loading and dashboard capabilities are therefore represented from the README, not verified in sampled implementation. SQL and dashboard internals were not sampled.
Main entry points: run_pipeline.py Pipeline runner · MacroLens.pbix Power BI dashboard · load.py CSV processing · extract.py Indicator extraction
Components 13
Data pipeline
- Pipeline runner
src/run_pipeline.py - Indicator extraction
src/extract.py - Data transformation
src/transform.py - CSV processing
src/load.py
Data storage
- PostgreSQL
- Relational schema
sql/create_tables.sql
Economic analytics
- SQL analytics
sql/analytics.sql - SQL query set
sql/01_basic_queries.sql
Dashboard experience
- Power BI dashboard
dashboard/MacroLens.pbix - Executive overview
dashboard/MacroLens.pbix - Economic intelligence
dashboard/MacroLens.pbix
Other components
- Analyst
- World Bank API
Connections 14
- Analyst → Pipeline runner: starts pipeline
README.md - Pipeline runner → Indicator extraction: executes
src/run_pipeline.py - Pipeline runner → Data transformation: executes
src/run_pipeline.py - Pipeline runner → CSV processing: executes
src/run_pipeline.py - Indicator extraction → World Bank API: fetches data
src/extract.py - Data transformation → CSV processing: precedes
- CSV processing → PostgreSQL: loads observations
README.md - Relational schema → PostgreSQL: defines tables
README.md - PostgreSQL → SQL analytics: supplies data
README.md - PostgreSQL → SQL query set: queried by
README.md - PostgreSQL → Power BI dashboard: provides data
README.md - Analyst → Power BI dashboard: explores insights
README.md - Power BI dashboard → Executive overview: presents
README.md - Power BI dashboard → Economic intelligence: presents
README.md