# amel-amarouchene/projet_fitzone_datamining architecture

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

- Interactive diagram: https://gitdiagram.com/amel-amarouchene/projet_fitzone_datamining
- Repository: https://github.com/amel-amarouchene/projet_fitzone_datamining

## Overview

FitZone is a small data-cleaning utility, not a larger application. Running `src/chargement.py` loads subscriber and gym CSV files, applies deduplication, type conversion, validity checks, missing-value completion and derived-column preparation, then joins gym details and returns the cleaned data. These stages are implemented in one file; the repository does not document downstream analysis or a separate persisted output.

Main entry points: [`src/chargement.py`](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py) (Load data), [`data/FitZone_salles.csv`](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/data/FitZone_salles.csv) (Gym CSV), [`data/FitZone_abonnes.csv`](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/data/FitZone_abonnes.csv) (Subscriber CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_analyst(("Analyst"))
node_loader["Load data<br/>[chargement.py]"]
node_subscribers["Subscriber CSV"]
node_gyms["Gym CSV<br/>[FitZone_salles.csv]"]
node_dedup["Remove duplicates<br/>[chargement.py]"]
node_numeric["Convert numbers<br/>[chargement.py]"]
node_validity["Filter invalid values<br/>[chargement.py]"]
node_missing["Fill missing values<br/>[chargement.py]"]
node_columns["Prepare columns<br/>[chargement.py]"]
node_merge["Join gym details<br/>[chargement.py]"]
node_cleaned["Cleaned data<br/>[chargement.py]"]

node_analyst -->|"runs"| node_loader
node_loader -->|"reads"| node_subscribers
node_loader -->|"reads"| node_gyms
node_loader -->|"calls"| node_dedup
node_loader -->|"calls"| node_numeric
node_loader -->|"calls"| node_validity
node_loader -->|"calls"| node_missing
node_loader -->|"calls"| node_columns
node_loader -->|"calls"| node_merge
node_merge -->|"joins"| node_gyms
node_loader -->|"returns"| node_cleaned

click node_loader "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py"
click node_subscribers "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/data/FitZone_abonnes.csv"
click node_gyms "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/data/FitZone_salles.csv"
click node_dedup "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py"
click node_numeric "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py"
click node_validity "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py"
click node_missing "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py"
click node_columns "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py"
click node_merge "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py"
click node_cleaned "https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py"

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_analyst toneIndigo
class node_loader,node_subscribers,node_gyms,node_dedup,node_numeric,node_validity,node_missing,node_columns,node_merge,node_cleaned toneTeal
```

## Components

### Other components

- **Analyst**
- [Load data](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py): `src/chargement.py`
- [Subscriber CSV](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/data/FitZone_abonnes.csv): `data/FitZone_abonnes.csv`
- [Gym CSV](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/data/FitZone_salles.csv): `data/FitZone_salles.csv`
- [Remove duplicates](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py): `src/chargement.py`
- [Convert numbers](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py): `src/chargement.py`
- [Filter invalid values](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py): `src/chargement.py`
- [Fill missing values](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py): `src/chargement.py`
- [Prepare columns](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py): `src/chargement.py`
- [Join gym details](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py): `src/chargement.py`
- [Cleaned data](https://github.com/amel-amarouchene/projet_fitzone_datamining/blob/main/src/chargement.py): `src/chargement.py`

## Connections

- Analyst → Load data: runs (evidence: `src/chargement.py`)
- Load data → Subscriber CSV: reads (evidence: `src/chargement.py`)
- Load data → Gym CSV: reads (evidence: `src/chargement.py`)
- Load data → Remove duplicates: calls (evidence: `src/chargement.py`)
- Load data → Convert numbers: calls (evidence: `src/chargement.py`)
- Load data → Filter invalid values: calls (evidence: `src/chargement.py`)
- Load data → Fill missing values: calls (evidence: `src/chargement.py`)
- Load data → Prepare columns: calls (evidence: `src/chargement.py`)
- Load data → Join gym details: calls (evidence: `src/chargement.py`)
- Join gym details → Gym CSV: joins (evidence: `src/chargement.py`)
- Load data → Cleaned data: returns (evidence: `src/chargement.py`)
