# kathmbell/inventorycleaning-01 architecture

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

- Interactive diagram: https://gitdiagram.com/kathmbell/inventorycleaning-01
- Repository: https://github.com/kathmbell/inventorycleaning-01

## Overview

This is a small, single-file pandas data-cleaning script. It reads product-pricing and city-reference CSVs, filters and normalizes product records, enriches rows with location and quantity fields, then writes the result to a CSV. The stages share one implementation file; no separate runtime layers or broader product capabilities are evident. The edges reflect operations shown in the excerpt.

Main entry points: [`csv_cleaning.py`](https://github.com/kathmbell/inventorycleaning-01/blob/master/csv_cleaning.py) (Product Filtering)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_product_data["Pricing CSV"]
node_city_data["City Reference CSV"]
node_cleaning["Product Filtering<br/>[csv_cleaning.py]"]
node_enrichment["Row Enrichment<br/>[csv_cleaning.py]"]
node_result["Cleaned CSV"]

node_cleaning -->|"reads"| node_product_data
node_cleaning -->|"loads"| node_city_data
node_cleaning -->|"applies"| node_enrichment
node_enrichment -->|"looks up"| node_city_data
node_cleaning -->|"writes"| node_result

click node_cleaning "https://github.com/kathmbell/inventorycleaning-01/blob/master/csv_cleaning.py"
click node_enrichment "https://github.com/kathmbell/inventorycleaning-01/blob/master/csv_cleaning.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_product_data,node_city_data,node_result toneIndigo
class node_cleaning,node_enrichment toneTeal
```

## Components

### Other components

- **Pricing CSV**
- **City Reference CSV**
- [Product Filtering](https://github.com/kathmbell/inventorycleaning-01/blob/master/csv_cleaning.py): `csv_cleaning.py`
- [Row Enrichment](https://github.com/kathmbell/inventorycleaning-01/blob/master/csv_cleaning.py): `csv_cleaning.py`
- **Cleaned CSV**

## Connections

- Product Filtering → Pricing CSV: reads (evidence: `csv_cleaning.py`)
- Product Filtering → City Reference CSV: loads (evidence: `csv_cleaning.py`)
- Product Filtering → Row Enrichment: applies (evidence: `csv_cleaning.py`)
- Row Enrichment → City Reference CSV: looks up (evidence: `csv_cleaning.py`)
- Product Filtering → Cleaned CSV: writes (evidence: `csv_cleaning.py`)
