# sanoj-936/netflix-content-analysis architecture

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

- Interactive diagram: https://gitdiagram.com/sanoj-936/netflix-content-analysis
- Repository: https://github.com/sanoj-936/netflix-content-analysis

## Overview

Netflix Content Analysis is a Streamlit dashboard and companion EDA notebook for exploring the Netflix title catalog. The main workflow is to load and prepare catalog data, apply sidebar filters, then inspect portfolio KPIs, visual analytics, and searchable record details with CSV export. Dashboard capabilities are grouped by their user-facing analysis stage; the reusable processing module is represented separately. The README documents the notebook branch, but its implementation was not sampled, so its internal relationships are not expanded.

Main entry points: [`app.py`](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py) (Sidebar filters), [`data/netflix_titles.csv`](https://github.com/sanoj-936/netflix-content-analysis/blob/main/data/netflix_titles.csv) (Netflix catalog), [`src/data_processing.py`](https://github.com/sanoj-936/netflix-content-analysis/blob/main/src/data_processing.py) (Data cleaning and features), [`notebooks/netflix_analysis.ipynb`](https://github.com/sanoj-936/netflix-content-analysis/blob/main/notebooks/netflix_analysis.ipynb) (Jupyter EDA)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Interactive dashboard"]
  node_app["Streamlit app<br/>[app.py]"]
  node_filters["Sidebar filters<br/>[app.py]"]
  node_explorer["Data explorer and export<br/>[app.py]"]
end

subgraph group_analytics["Catalog analytics"]
  node_scorecard["KPI scorecard<br/>[app.py]"]
  node_distribution["Content distribution<br/>[app.py]"]
  node_growth["Growth trends<br/>[app.py]"]
  node_geography["Country analysis<br/>[app.py]"]
  node_genres["Genre dynamics<br/>[app.py]"]
  node_duration["Duration and ratings<br/>[app.py]"]
end

subgraph group_processing["Data preparation"]
  node_catalog["Netflix catalog<br/>[netflix_titles.csv]"]
  node_cleaning["Data cleaning and features<br/>[data_processing.py]"]
  node_metrics["Reusable catalog metrics<br/>[data_processing.py]"]
end

subgraph group_notebook["Exploratory analysis"]
  node_notebook["Jupyter EDA"]
end

node_user(("Dashboard user"))

node_user -->|"opens"| node_app
node_app -.->|"loads catalog"| node_catalog
node_app -->|"presents filters"| node_filters
node_filters -->|"filters metrics"| node_scorecard
node_filters -->|"filters data"| node_distribution
node_filters -->|"filters data"| node_growth
node_filters -->|"filters data"| node_geography
node_filters -->|"filters data"| node_genres
node_filters -->|"filters data"| node_duration
node_filters -->|"filters records"| node_explorer
node_user -->|"runs analysis"| node_notebook
node_catalog -.->|"loads and cleans"| node_cleaning
node_cleaning -.->|"provides prepared data"| node_metrics

click node_app "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_catalog "https://github.com/sanoj-936/netflix-content-analysis/blob/main/data/netflix_titles.csv"
click node_filters "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_scorecard "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_distribution "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_growth "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_geography "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_genres "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_duration "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_explorer "https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py"
click node_cleaning "https://github.com/sanoj-936/netflix-content-analysis/blob/main/src/data_processing.py"
click node_metrics "https://github.com/sanoj-936/netflix-content-analysis/blob/main/src/data_processing.py"
click node_notebook "https://github.com/sanoj-936/netflix-content-analysis/blob/main/notebooks/netflix_analysis.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_app,node_filters,node_explorer,node_user toneBlue
class node_scorecard,node_distribution,node_growth,node_geography,node_genres,node_duration toneAmber
class node_catalog,node_cleaning,node_metrics toneMint
class node_notebook toneRose
```

## Components

### Interactive dashboard

- [Streamlit app](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`
- [Sidebar filters](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`
- [Data explorer and export](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`

### Catalog analytics

- [KPI scorecard](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`
- [Content distribution](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`
- [Growth trends](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`
- [Country analysis](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`
- [Genre dynamics](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`
- [Duration and ratings](https://github.com/sanoj-936/netflix-content-analysis/blob/main/app.py): `app.py`

### Data preparation

- [Netflix catalog](https://github.com/sanoj-936/netflix-content-analysis/blob/main/data/netflix_titles.csv): `data/netflix_titles.csv`
- [Data cleaning and features](https://github.com/sanoj-936/netflix-content-analysis/blob/main/src/data_processing.py): `src/data_processing.py`
- [Reusable catalog metrics](https://github.com/sanoj-936/netflix-content-analysis/blob/main/src/data_processing.py): `src/data_processing.py`

### Exploratory analysis

- [Jupyter EDA](https://github.com/sanoj-936/netflix-content-analysis/blob/main/notebooks/netflix_analysis.ipynb): `notebooks/netflix_analysis.ipynb`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Streamlit app: opens (evidence: `README.md`)
- Streamlit app → Netflix catalog: loads catalog
- Streamlit app → Sidebar filters: presents filters (evidence: `app.py`)
- Sidebar filters → KPI scorecard: filters metrics (evidence: `app.py`)
- Sidebar filters → Content distribution: filters data (evidence: `app.py`)
- Sidebar filters → Growth trends: filters data (evidence: `app.py`)
- Sidebar filters → Country analysis: filters data (evidence: `app.py`)
- Sidebar filters → Genre dynamics: filters data (evidence: `app.py`)
- Sidebar filters → Duration and ratings: filters data (evidence: `app.py`)
- Sidebar filters → Data explorer and export: filters records (evidence: `app.py`)
- Dashboard user → Jupyter EDA: runs analysis (evidence: `README.md`)
- Netflix catalog → Data cleaning and features: loads and cleans
- Data cleaning and features → Reusable catalog metrics: provides prepared data (evidence: `src/data_processing.py`)
