# phelix-osawa/netflix-content-analysis architecture

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

- Interactive diagram: https://gitdiagram.com/phelix-osawa/netflix-content-analysis
- Repository: https://github.com/phelix-osawa/netflix-content-analysis

## Overview

This is a notebook-based Netflix catalog analysis project. The main workflow cleans the raw CSV into a reusable processed dataset, then explores catalog composition, country credits, release-year trends, ratings and genres, and consolidated business insights. Shared loading and multi-credit preparation live in `src/helpers.py`. Notebook internals were not provided, so notebook-to-data and helper relationships below rely on README statements rather than inspected notebook code.

Main entry points: [`data/processed/netflix_cleaned_dataset.csv`](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/data/processed/netflix_cleaned_dataset.csv) (Cleaned titles CSV), [`src/helpers.py`](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/src/helpers.py) (Shared data helpers), [`notebooks/01_data_cleaning.ipynb`](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/01_data_cleaning.ipynb) (Data cleaning), [`notebooks/02_content_type_analysis.ipynb`](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/02_content_type_analysis.ipynb) (Content type analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Dataset preparation"]
  node_raw["Raw titles CSV<br/>[Dataset.csv]"]
  node_cleaning["Data cleaning"]
  node_helpers["Shared data helpers<br/>[helpers.py]"]
  node_processed["Cleaned titles CSV"]
end

subgraph group_analysis["Catalog analysis"]
  node_content["Content type analysis"]
  node_country["Country analysis"]
  node_release["Release-year trends"]
  node_rating_genre["Ratings and genres"]
end

subgraph group_insights["Business insights"]
  node_business["Business insights"]
end

node_analyst(("Analyst"))

node_analyst -->|"runs first"| node_cleaning
node_cleaning -->|"loads"| node_raw
node_cleaning -->|"exports"| node_processed
node_content -->|"loads"| node_processed
node_country -->|"loads"| node_processed
node_release -->|"loads"| node_processed
node_rating_genre -->|"loads"| node_processed
node_business -->|"loads"| node_processed
node_content -->|"uses helpers"| node_helpers
node_country -->|"uses helpers"| node_helpers
node_release -->|"uses helpers"| node_helpers
node_rating_genre -->|"uses helpers"| node_helpers
node_business -->|"uses helpers"| node_helpers

click node_raw "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/data/raw/Dataset.csv"
click node_cleaning "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/01_data_cleaning.ipynb"
click node_helpers "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/src/helpers.py"
click node_processed "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/data/processed/netflix_cleaned_dataset.csv"
click node_content "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/02_content_type_analysis.ipynb"
click node_country "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/03_country_analysis.ipynb"
click node_release "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/04_release_year_trends.ipynb"
click node_rating_genre "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/05_content_rating_genre_analysis.ipynb"
click node_business "https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/06_netflix_business_insights.ipynb"

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_raw,node_cleaning,node_helpers,node_processed toneBlue
class node_content,node_country,node_release,node_rating_genre toneAmber
class node_business toneMint
class node_analyst toneIndigo
```

## Components

### Dataset preparation

- [Raw titles CSV](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/data/raw/Dataset.csv): `data/raw/Dataset.csv`
- [Data cleaning](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/01_data_cleaning.ipynb): `notebooks/01_data_cleaning.ipynb`
- [Shared data helpers](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/src/helpers.py): `src/helpers.py`
- [Cleaned titles CSV](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/data/processed/netflix_cleaned_dataset.csv): `data/processed/netflix_cleaned_dataset.csv`

### Catalog analysis

- [Content type analysis](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/02_content_type_analysis.ipynb): `notebooks/02_content_type_analysis.ipynb`
- [Country analysis](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/03_country_analysis.ipynb): `notebooks/03_country_analysis.ipynb`
- [Release-year trends](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/04_release_year_trends.ipynb): `notebooks/04_release_year_trends.ipynb`
- [Ratings and genres](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/05_content_rating_genre_analysis.ipynb): `notebooks/05_content_rating_genre_analysis.ipynb`

### Business insights

- [Business insights](https://github.com/phelix-osawa/netflix-content-analysis/blob/main/notebooks/06_netflix_business_insights.ipynb): `notebooks/06_netflix_business_insights.ipynb`

### Other components

- **Analyst**

## Connections

- Analyst → Data cleaning: runs first (evidence: `README.md`)
- Data cleaning → Raw titles CSV: loads (evidence: `README.md`)
- Data cleaning → Cleaned titles CSV: exports (evidence: `README.md`)
- Content type analysis → Cleaned titles CSV: loads (evidence: `README.md`)
- Country analysis → Cleaned titles CSV: loads (evidence: `README.md`)
- Release-year trends → Cleaned titles CSV: loads (evidence: `README.md`)
- Ratings and genres → Cleaned titles CSV: loads (evidence: `README.md`)
- Business insights → Cleaned titles CSV: loads (evidence: `README.md`)
- Content type analysis → Shared data helpers: uses helpers (evidence: `README.md`)
- Country analysis → Shared data helpers: uses helpers (evidence: `README.md`)
- Release-year trends → Shared data helpers: uses helpers (evidence: `README.md`)
- Ratings and genres → Shared data helpers: uses helpers (evidence: `README.md`)
- Business insights → Shared data helpers: uses helpers (evidence: `README.md`)
