This project is an interactive web dashboard built with Plotly Dash to analyze global trade flows and tariff data. Its purpose is to provide a portfolio manager with visualizations to better understand the impact of trade policies on different countries and sectors.
Automated Data Pipeline: A Python script programmatically fetches the latest U.S. import/export data from the U.S. Census Bureau and global MFN (Most-Favoured-Nation) tariff rates from the World Bank.
Interactive Sector Analysis: A stacked bar chart displays the top sectors driving the U.S. trade deficit by year. An interactive dropdown allows users to filter for a specific sector and view a color-coded breakdown of the top 5 contributing countries.
Geographical Import Treemap: A treemap visualizes the scale of U.S. imports, hierarchically broken down by world region and individual country.
Trade Partner Tariff Analysis: A bar chart identifies the MFN tariff rates for the U.S.'s top 10 trading "adversaries," measured by the largest trade deficits.
Backend & Data Analysis: Python, Pandas
Dashboard & Visualization: Plotly Dash
Deployment: Gunicorn, Heroku