# harshabs07/fifa_moneyball_analytics architecture

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

- Interactive diagram: https://gitdiagram.com/harshabs07/fifa_moneyball_analytics
- Repository: https://github.com/harshabs07/fifa_moneyball_analytics

## Overview

The product is a football scouting analytics workflow: player data is cleaned and loaded into MySQL, then intended for interactive Power BI analysis to identify promising U-23 midfielders under budget. The README documents the dashboard’s filters and Ramsey recommendation, but the Power BI internals and its database connection are not shown in the sampled source; that connection is therefore marked unverified.

Main entry points: [`football_scouting.pbix`](https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/football_scouting.pbix) (Power BI dashboard), [`push_data.py`](https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/push_data.py) (Clean and load), [`players.csv`](https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/players.csv) (Player data), [`README.md`](https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/README.md) (Player recommendation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Data ingestion"]
  node_player_csv["Player data<br/>[players.csv]"]
  node_etl["Clean and load<br/>[push_data.py]"]
end

subgraph group_storage["Data storage"]
  node_mysql[("Scouting database")]
end

subgraph group_analytics["Scouting analytics"]
  node_dashboard["Power BI dashboard"]
end

subgraph group_decision["Scouting decision"]
  node_recommendation["Player recommendation<br/>[README.md]"]
end

node_scout(("Club scout"))

node_player_csv -->|"loads and cleans"| node_etl
node_etl -->|"writes records"| node_mysql
node_mysql -.->|"supplies analysis data"| node_dashboard
node_scout -->|"filters candidates"| node_dashboard
node_dashboard -->|"informs choice"| node_recommendation

click node_player_csv "https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/players.csv"
click node_etl "https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/push_data.py"
click node_dashboard "https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/football_scouting.pbix"
click node_recommendation "https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/README.md"

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_player_csv,node_etl toneBlue
class node_mysql toneAmber
class node_dashboard toneMint
class node_recommendation toneRose
class node_scout toneIndigo
```

## Components

### Data ingestion

- [Player data](https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/players.csv): `players.csv`
- [Clean and load](https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/push_data.py): `push_data.py`

### Data storage

- **Scouting database**

### Scouting analytics

- [Power BI dashboard](https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/football_scouting.pbix): `football_scouting.pbix`

### Scouting decision

- [Player recommendation](https://github.com/harshabs07/fifa_moneyball_analytics/blob/main/README.md): `README.md`

### Other components

- **Club scout**

## Connections

- Player data → Clean and load: loads and cleans (evidence: `push_data.py`)
- Clean and load → Scouting database: writes records (evidence: `push_data.py`)
- Scouting database → Power BI dashboard: supplies analysis data
- Club scout → Power BI dashboard: filters candidates (evidence: `README.md`)
- Power BI dashboard → Player recommendation: informs choice (evidence: `README.md`)
