# matius2002/data-engineering-exercises architecture

> Architecture diagram of the GitHub repository matius2002/data-engineering-exercises, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/matius2002/data-engineering-exercises
- Repository: https://github.com/matius2002/data-engineering-exercises

## Overview

This repository contains two independent Python exercises, not a larger application. Exercise1.py computes sales totals, average, extrema, and counts above a threshold using both built-in operations and loop-based alternatives. Exercise2.py builds a pandas DataFrame from sample product records, removes duplicate IDs, and prints both versions. The scripts are self-contained; the graph shows only library calls and outputs visible in the excerpts.

Main entry points: [`Exercise1.py`](https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise1.py) (Sales analysis), [`Exercise2.py`](https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise2.py) (Product records)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_sales["Sales analysis<br/>[Exercise1.py]"]
node_statistics["Statistics mean"]
node_sales_output["Printed results<br/>[Exercise1.py]"]
node_product_records["Product records<br/>[Exercise2.py]"]
node_pandas["Pandas DataFrame"]
node_deduplicated["Unique records<br/>[Exercise2.py]"]
node_dataframe_output["Printed tables<br/>[Exercise2.py]"]

node_sales -->|"calls mean"| node_statistics
node_sales -->|"prints metrics"| node_sales_output
node_product_records -->|"builds DataFrame"| node_pandas
node_pandas -->|"drops duplicates"| node_deduplicated
node_product_records -->|"prints original"| node_dataframe_output
node_deduplicated -->|"prints filtered"| node_dataframe_output

click node_sales "https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise1.py"
click node_sales_output "https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise1.py"
click node_product_records "https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise2.py"
click node_deduplicated "https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise2.py"
click node_dataframe_output "https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise2.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_sales,node_sales_output,node_product_records,node_deduplicated,node_dataframe_output toneTeal
class node_statistics,node_pandas toneIndigo
```

## Components

### Other components

- [Sales analysis](https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise1.py): `Exercise1.py`
- **Statistics mean**
- [Printed results](https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise1.py): `Exercise1.py`
- [Product records](https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise2.py): `Exercise2.py`
- **Pandas DataFrame**
- [Unique records](https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise2.py): `Exercise2.py`
- [Printed tables](https://github.com/matius2002/data-engineering-exercises/blob/master/Exercise2.py): `Exercise2.py`

## Connections

- Sales analysis → Statistics mean: calls mean (evidence: `Exercise1.py`)
- Sales analysis → Printed results: prints metrics (evidence: `Exercise1.py`)
- Product records → Pandas DataFrame: builds DataFrame (evidence: `Exercise2.py`)
- Pandas DataFrame → Unique records: drops duplicates (evidence: `Exercise2.py`)
- Product records → Printed tables: prints original (evidence: `Exercise2.py`)
- Unique records → Printed tables: prints filtered (evidence: `Exercise2.py`)
