# lavjaiswal034/netflix-data-analysis-and-ml-prediction architecture

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

- Interactive diagram: https://gitdiagram.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction
- Repository: https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction

## Overview

This repository contains two Netflix-title dashboard implementations: the documented Streamlit app in `app.py` and a browser-side dashboard in `app.js`. The main user workflow is to load sample or CSV data, explore and filter titles, inspect analytics, and use title-type prediction. The README also documents model comparison, feature importance, and report and dataset downloads. Some Python sections and the HTML are unsampled, so edges for those capabilities rely on README statements rather than inspected implementation details.

Main entry points: [`app.py`](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py) (Streamlit interface), [`app.js`](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js) (Browser dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_python["Streamlit dashboard"]
  node_python_app["Streamlit interface<br/>[app.py]"]
  node_python_downloads["Dataset and report downloads<br/>[app.py]"]
end

subgraph group_browser["Browser dashboard"]
  node_browser_app["Browser dashboard<br/>[app.js]"]
end

subgraph group_data["Data preparation"]
  node_csv_input["CSV or sample data<br/>[app.py]"]
  node_python_clean["Clean and derive fields<br/>[app.py]"]
  node_python_filters["Search and filters<br/>[app.py]"]
  node_browser_csv["CSV parser and loader<br/>[app.js]"]
end

subgraph group_insights["Analysis and prediction"]
  node_python_analytics["Catalog analytics<br/>[app.py]"]
  node_python_deep["Deep insights<br/>[app.py]"]
  node_python_models["Model comparison<br/>[app.py]"]
  node_python_importance["Feature importance<br/>[app.py]"]
  node_python_predict["Custom prediction<br/>[app.py]"]
  node_browser_analytics["Charts and metrics<br/>[app.js]"]
  node_browser_model["Naive Bayes evaluation<br/>[app.js]"]
end

node_user(("Dashboard user"))

node_user -->|"uses"| node_python_app
node_python_app -->|"loads"| node_csv_input
node_python_app -->|"cleans"| node_python_clean
node_python_app -->|"filters"| node_python_filters
node_python_app -->|"shows"| node_python_analytics
node_python_app -->|"shows"| node_python_deep
node_python_app -->|"compares"| node_python_models
node_python_app -->|"shows"| node_python_importance
node_python_app -->|"predicts"| node_python_predict
node_python_app -->|"offers"| node_python_downloads
node_user -.->|"uses"| node_browser_app
node_browser_app -->|"loads"| node_browser_csv
node_browser_csv -->|"renders rows"| node_browser_app
node_browser_app -->|"renders"| node_browser_analytics
node_browser_app -->|"evaluates"| node_browser_model
node_browser_model -->|"returns metrics"| node_browser_app

click node_python_app "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_csv_input "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_python_clean "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_python_filters "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_python_analytics "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_python_deep "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_python_models "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_python_importance "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_python_predict "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_python_downloads "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py"
click node_browser_app "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js"
click node_browser_csv "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js"
click node_browser_analytics "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js"
click node_browser_model "https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js"

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_python_app,node_python_downloads,node_user toneBlue
class node_browser_app toneAmber
class node_csv_input,node_python_clean,node_python_filters,node_browser_csv toneMint
class node_python_analytics,node_python_deep,node_python_models,node_python_importance,node_python_predict,node_browser_analytics,node_browser_model toneRose
```

## Components

### Streamlit dashboard

- [Streamlit interface](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [Dataset and report downloads](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`

### Browser dashboard

- [Browser dashboard](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js): `app.js`

### Data preparation

- [CSV or sample data](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [Clean and derive fields](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [Search and filters](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [CSV parser and loader](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js): `app.js`

### Analysis and prediction

- [Catalog analytics](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [Deep insights](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [Model comparison](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [Feature importance](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [Custom prediction](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.py): `app.py`
- [Charts and metrics](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js): `app.js`
- [Naive Bayes evaluation](https://github.com/lavjaiswal034/netflix-data-analysis-and-ml-prediction/blob/main/app.js): `app.js`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Streamlit interface: uses (evidence: `README.md`)
- Streamlit interface → CSV or sample data: loads (evidence: `app.py`)
- Streamlit interface → Clean and derive fields: cleans (evidence: `app.py`)
- Streamlit interface → Search and filters: filters (evidence: `README.md`)
- Streamlit interface → Catalog analytics: shows (evidence: `app.py`)
- Streamlit interface → Deep insights: shows (evidence: `README.md`)
- Streamlit interface → Model comparison: compares (evidence: `README.md`)
- Streamlit interface → Feature importance: shows (evidence: `README.md`)
- Streamlit interface → Custom prediction: predicts (evidence: `README.md`)
- Streamlit interface → Dataset and report downloads: offers (evidence: `README.md`)
- Dashboard user → Browser dashboard: uses
- Browser dashboard → CSV parser and loader: loads (evidence: `app.js`)
- CSV parser and loader → Browser dashboard: renders rows (evidence: `app.js`)
- Browser dashboard → Charts and metrics: renders (evidence: `app.js`)
- Browser dashboard → Naive Bayes evaluation: evaluates (evidence: `app.js`)
- Naive Bayes evaluation → Browser dashboard: returns metrics (evidence: `app.js`)
