Malaysia economy

Malaysia Trade Partners and Chokepoint Resilience

A network and Sankey analysis of Malaysia's export and import flows by partner and commodity. It measures market concentration with the Herfindahl-Hirschman Index and shows how much Malaysia's crude oil supply depends on the Strait of Hormuz.

Stack
Python, Streamlit, pytest
Code
github.com/ADM1SH/malaysia-trade-partner-network

Overview

Install

pip install -r requirements.txt
pytest -v
streamlit run app.py

Docs

The full documentation covers how it works, configuration and results.