Remshid/netflix-content-analysis
0
Netflix Analytics Dashboard
An interactive, responsive full-stack web dashboard that analyzes Netflix content data. Built with a Python/Flask API backend and a React/Vite/Recharts frontend.
Features
- KPI Summary Cards: Real-time totals of titles, movies, TV shows, and content-producing countries.
- Top Genres: Visual representation of the most popular content categories on Netflix.
- Ratings Distribution: Interactive donut chart showing the breakdown of audience ratings (TV-MA, TV-14, R, PG-13, etc.).
- Release Trends: Interactive line chart showing the volume of Netflix content releases over the last 25 years.
- Top Producing Countries: Horizontal bar chart mapping production volume by country.
Technologies Used
Backend
- Python: Core programming language.
- Pandas: Data ingestion and processing.
- Flask: Micro web framework to build API endpoints.
- Flask-CORS: Cross-Origin Resource Sharing middleware.
Frontend
- React: Components and state management.
- Vite: Super fast build tool and dev server.
- Recharts: Responsive D3-based React charts.
- Axios: HTTP client for API requests.
Getting Started
1. Prerequisite: Clean Raw Data
Ensure your raw dataset is located at: backend/data/raw/netflix_titles.csv.
To clean the raw dataset and generate the processed version, run:
python backend/scripts/data_cleaning.pyThis produces backend/data/processed/cleaned_netflix.csv with cleaned missing values, formatted dates, and removed duplicates.
2. Start the Backend API
Install Python dependencies:
pip install -r requirements.txtLaunch the Flask server:
python backend/app.pyThe backend API server will run at: http://127.0.0.1:5000/api.
3. Start the Frontend Dashboard
Navigate to the frontend folder:
cd frontendInstall npm packages:
npm installStart the Vite React development server:
npm run devOpen your browser and navigate to: http://localhost:5173/.
