# watson752/international_tax_complexity_board architecture

> Architecture diagram of the GitHub repository watson752/international_tax_complexity_board, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/watson752/international_tax_complexity_board
- Repository: https://github.com/watson752/international_tax_complexity_board

## Overview

This project turns World Bank Paying Taxes indicators into a ranked, banded complexity comparison for economies. Its workflow is: obtain the three indicator datasets, clean and merge their 2019 values, calculate normalized subscores and a weighted score, export the prepared dataset, and present comparisons in Power BI. The graph reflects the Python calls and file reads shown in the excerpts, plus workflow relationships documented in the README; the Power BI internals were not sampled.

Main entry points: [`src/merge_and_clean.py`](https://github.com/watson752/international_tax_complexity_board/blob/main/src/merge_and_clean.py) (Clean and Merge), [`data/processed/tax_complexity_dashboard_ready.csv`](https://github.com/watson752/international_tax_complexity_board/blob/main/data/processed/tax_complexity_dashboard_ready.csv) (Prepared Dataset), [`data/raw/tax_rate_data.csv`](https://github.com/watson752/international_tax_complexity_board/blob/main/data/raw/tax_rate_data.csv) (Tax Rate Data), [`data/raw/time_data.csv`](https://github.com/watson752/international_tax_complexity_board/blob/main/data/raw/time_data.csv) (Time Data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Indicator Data"]
  node_tax_rate["Tax Rate Data<br/>[tax_rate_data.csv]"]
  node_time_data["Time Data<br/>[time_data.csv]"]
  node_payments_data["Payments Data<br/>[payments_data.csv]"]
end

subgraph group_analysis["Scoring Workflow"]
  node_clean_merge["Clean and Merge<br/>[merge_and_clean.py]"]
  node_score["Complexity Scoring<br/>[scoring.py]"]
  node_prepared_data["Prepared Dataset"]
end

subgraph group_presentation["Dashboard"]
  node_powerbi["Power BI Dashboard"]
end

node_world_bank(("World Bank DataBank"))
node_stakeholder(("Dashboard Viewer"))

node_world_bank -->|"provides indicator"| node_tax_rate
node_world_bank -->|"provides indicator"| node_time_data
node_world_bank -->|"provides indicator"| node_payments_data
node_clean_merge -->|"reads"| node_tax_rate
node_clean_merge -->|"reads"| node_time_data
node_clean_merge -->|"reads"| node_payments_data
node_clean_merge -->|"calls"| node_score
node_clean_merge -->|"writes"| node_prepared_data
node_prepared_data -->|"feeds dashboard"| node_powerbi
node_stakeholder -->|"views"| node_powerbi

click node_tax_rate "https://github.com/watson752/international_tax_complexity_board/blob/main/data/raw/tax_rate_data.csv"
click node_time_data "https://github.com/watson752/international_tax_complexity_board/blob/main/data/raw/time_data.csv"
click node_payments_data "https://github.com/watson752/international_tax_complexity_board/blob/main/data/raw/payments_data.csv"
click node_clean_merge "https://github.com/watson752/international_tax_complexity_board/blob/main/src/merge_and_clean.py"
click node_score "https://github.com/watson752/international_tax_complexity_board/blob/main/src/scoring.py"
click node_prepared_data "https://github.com/watson752/international_tax_complexity_board/blob/main/data/processed/tax_complexity_dashboard_ready.csv"
click node_powerbi "https://github.com/watson752/international_tax_complexity_board/blob/main/dashboard/PowerBI_Project.pbix"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tax_rate,node_time_data,node_payments_data,node_stakeholder toneBlue
class node_clean_merge,node_score,node_prepared_data toneAmber
class node_powerbi toneMint
class node_world_bank toneIndigo
```

## Components

### Indicator Data

- [Tax Rate Data](https://github.com/watson752/international_tax_complexity_board/blob/main/data/raw/tax_rate_data.csv): `data/raw/tax_rate_data.csv`
- [Time Data](https://github.com/watson752/international_tax_complexity_board/blob/main/data/raw/time_data.csv): `data/raw/time_data.csv`
- [Payments Data](https://github.com/watson752/international_tax_complexity_board/blob/main/data/raw/payments_data.csv): `data/raw/payments_data.csv`

### Scoring Workflow

- [Clean and Merge](https://github.com/watson752/international_tax_complexity_board/blob/main/src/merge_and_clean.py): `src/merge_and_clean.py`
- [Complexity Scoring](https://github.com/watson752/international_tax_complexity_board/blob/main/src/scoring.py): `src/scoring.py`
- [Prepared Dataset](https://github.com/watson752/international_tax_complexity_board/blob/main/data/processed/tax_complexity_dashboard_ready.csv): `data/processed/tax_complexity_dashboard_ready.csv`

### Dashboard

- [Power BI Dashboard](https://github.com/watson752/international_tax_complexity_board/blob/main/dashboard/PowerBI_Project.pbix): `dashboard/PowerBI_Project.pbix`

### Other components

- **World Bank DataBank**
- **Dashboard Viewer**

## Connections

- World Bank DataBank → Tax Rate Data: provides indicator (evidence: `README.md`)
- World Bank DataBank → Time Data: provides indicator (evidence: `README.md`)
- World Bank DataBank → Payments Data: provides indicator (evidence: `README.md`)
- Clean and Merge → Tax Rate Data: reads (evidence: `src/merge_and_clean.py`)
- Clean and Merge → Time Data: reads (evidence: `src/merge_and_clean.py`)
- Clean and Merge → Payments Data: reads (evidence: `src/merge_and_clean.py`)
- Clean and Merge → Complexity Scoring: calls (evidence: `src/merge_and_clean.py`)
- Clean and Merge → Prepared Dataset: writes (evidence: `src/merge_and_clean.py`)
- Prepared Dataset → Power BI Dashboard: feeds dashboard (evidence: `README.md`)
- Dashboard Viewer → Power BI Dashboard: views (evidence: `README.md`)
