← portfolio.os/ projects / tax_complexity_dashboard

project / tax_complexity_dashboard

International Tax Administration Complexity Dashboard

shipped
Data Analytics

Overview

A data analytics project comparing tax compliance burden across international economies, built entirely on public World Bank Doing Business "Paying Taxes" data. Python and pandas clean, merge, and score the raw indicators; Power BI turns the result into a comparative, rankable dashboard.

Problem

Tax compliance burden varies a lot by jurisdiction. Some economies demand more filing time, more separate payments per year, or a higher total tax rate, but there was no single transparent, reproducible score that combined those three signals into one ranking. The project answers: which economies in the dataset appear to have the most complex tax administration burden, based on public World Bank indicators?

What I built

  • A cleaning pipeline (merge_and_clean.py) that pulls three separate World Bank CSVs (PAY.TAX.TM, PAY.TAX.PYMT.FREQ.NO, PAY.TAX.TOT.TAX.RT.ZS), extracts the 2019 column from each, and merges them into one analytical dataset
  • Min-max normalization of each indicator into comparable 0 to 100 sub-scores (time_score, payments_score, tax_rate_score) in scoring.py
  • A weighted composite Tax Complexity Score: 0.40 * time_score + 0.30 * payments_score + 0.30 * tax_rate_score
  • Classification of economies into complexity bands based on that score
  • A Power BI dashboard for ranking, comparison, and stakeholder-facing visualization

Architecture

Three raw World Bank CSVs → merge_and_clean.py (pandas: select the 2019 column from each, inner-join on country, coerce numeric types, drop missing rows) → data/processed/tax_complexity_dashboard_ready.csv → scoring.py (min-max normalization + weighted composite score + banding into Low/Medium/High/Very High) → the processed CSV feeds a Power BI .pbix dashboard for the final visual layer.

architecture diagram
Architecture diagram of International Tax Administration Complexity Dashboard, generated by GitDiagram

generated by gitdiagram · click to explore interactively ↗ · full size

Decisions

  • A transparent weighted formula over a black-box model: the 40/30/30 weighting is visible and adjustable, which matters for a dashboard meant to be defensible to stakeholders, not just accurate.
  • Min-max normalization per indicator before combining: the three raw indicators are on incompatible scales (hours, count, percent), so each is rescaled to 0 to 100 before the composite score is computed, keeping any one indicator from dominating by scale alone.

Results

Produces a ranked, banded comparison of tax administration complexity across every economy with complete 2019 data on all three indicators, visualized in an interactive Power BI dashboard (see images/dashboard_preview.png in the repo). In the processed output, Venezuela ranks highest at a complexity score of 63.5 ("High" band, driven by a 100/100 payments-frequency score); no economy in the dataset reaches the "Very High" band (75+).

What I learned

  • A single composite score is only as trustworthy as its weighting is explainable. Keeping the formula simple and visible mattered more than squeezing out marginal accuracy.
  • Working from three independently-sourced World Bank CSVs surfaced real messiness (missing years, inconsistent coverage) that a clean single dataset wouldn't have. The pipeline settles on a single fixed year (2019) across all three rather than each indicator's own latest year, which keeps the comparison apples-to-apples but means the dashboard isn't automatically current.
  • Joins quietly shape the result. The inner join drops any economy missing one of the three indicators, so the ranking only covers economies with complete 2019 data, and that limit has to be stated next to the ranking.
  • Normalization choices change rankings. Min-max scaling makes every score relative to the extremes in the dataset, so one outlier on payments frequency can compress everyone else's score.