This project focuses on analyzing the Netflix Movies and TV Shows dataset to explore the composition, distribution, and characteristics of Netflix's content catalog.
The analysis covers several aspects, including content types, production countries, genres, content ratings, release years, catalog addition trends, movie durations, and TV show season distributions.
The project follows a data analytics workflow using Python, PostgreSQL, and Power BI, starting from data understanding and cleaning, followed by exploratory data analysis (EDA), SQL-based analysis, and interactive dashboard development.
The main objective is to transform raw Netflix catalog data into meaningful insights and data-driven recommendations that can support a better understanding of content distribution and catalog characteristics.
The main objectives of this project are:
- Understand the structure and characteristics of the Netflix dataset.
- Identify and handle missing values, invalid data, and inconsistencies.
- Perform Exploratory Data Analysis (EDA) to discover patterns and trends.
- Use SQL to perform data exploration, aggregation, and analytical queries.
- Develop interactive Power BI dashboards to visualize important metrics.
- Identify business insights related to content distribution and catalog trends.
- Provide analytical recommendations based on the findings.
The following tools and technologies were used throughout the project.
| Tool | Purpose |
|---|---|
| Python | Data understanding, cleaning, and exploratory data analysis |
| Pandas | Data manipulation and transformation |
| NumPy | Numerical operations |
| Matplotlib | Data visualization |
| Seaborn | Statistical data visualization |
| PostgreSQL | Database management and SQL analysis |
| DBeaver | SQL development and database management |
| Power BI | Interactive dashboard development |
| Jupyter Notebook | Python analysis environment |
| Git & GitHub | Version control and project documentation |
The project uses the Netflix Movies and TV Shows dataset, which contains information about movies and TV shows available in the Netflix catalog.
| Attribute | Value |
|---|---|
| Total Records | 8,807 |
| Total Columns | 12 |
| Content Types | 2 |
| Unique Countries | 122 |
| Unique Genre Categories | 42 |
| Duplicate Records | 0 |
| Duplicate Show IDs | 0 |
| Column | Description |
|---|---|
show_id |
Unique identifier for each title |
type |
Content type: Movie or TV Show |
title |
Title name |
director |
Director of the title |
cast |
Main cast members |
country |
Country or countries associated with the title |
date_added |
Date the title was added to Netflix |
release_year |
Original release year |
rating |
Content rating |
duration |
Movie duration or TV Show season count |
listed_in |
Genre categories |
description |
Short description of the title |
To support the analysis and Power BI dashboard, the original dataset was transformed into three analytical datasets:
| Dataset | Rows | Columns | Purpose |
|---|---|---|---|
netflix_tableau_main.csv |
8,807 | 14 | Main content information |
netflix_country.csv |
10,012 | 4 | Country distribution analysis |
netflix_genre.csv |
19,323 | 4 | Genre distribution analysis |
The main dataset includes two additional numerical columns:
duration_minutes: Movie duration in minutes.season_count: Number of seasons for TV Shows.
The country and genre datasets are separated because a single title can be associated with multiple countries and multiple genre categories.
The project was conducted through the following analytical stages:
RAW DATASET
|
v
DATA UNDERSTANDING
|
v
DATA CLEANING
|
v
EXPLORATORY DATA ANALYSIS
|
v
DATA TRANSFORMATION
|
v
POSTGRESQL
SQL ANALYSIS
|
v
POWER BI
DATA MODELING
|
v
INTERACTIVE DASHBOARD
|
v
BUSINESS INSIGHTS
|
v
BUSINESS RECOMMENDATIONS
The initial stage focused on understanding the dataset structure, including:
- Dataset dimensions.
- Column names and data types.
- Data samples.
- Unique values.
- Descriptive statistics.
- Initial missing value identification.
The data cleaning process included:
- Identifying missing values.
- Handling missing categorical values.
- Correcting invalid content rating values.
- Extracting movie duration and TV Show season information.
- Converting
date_addedinto datetime format. - Checking duplicate records.
- Validating data consistency.
Missing values in director, cast, country, rating, and duration were handled using the value Unknown.
Ten missing values in date_added were retained because the original addition dates were unavailable and should not be artificially created.
Three malformed rating values that represented movie durations were corrected and transferred to the duration information.
EDA was performed to identify patterns and distributions across the Netflix catalog.
The analysis included:
- Movie and TV Show distribution.
- Content additions over time.
- Monthly catalog addition patterns.
- Country distribution.
- Genre distribution.
- Content rating distribution.
- Movie duration analysis.
- TV Show season analysis.
- Release year distribution.
PostgreSQL was used to perform structured queries and analytical operations.
The SQL analysis includes:
- Basic SQL queries.
- Filtering and sorting.
- Aggregate functions.
- GROUP BY and HAVING.
- CASE WHEN statements.
- JOIN operations.
- Common Table Expressions (CTEs).
- Window functions.
- Business insight queries.
Power BI was used to build interactive dashboards for exploring the Netflix content catalog.
The dashboard development process included:
- Data import and transformation.
- Data modeling.
- Relationship creation.
- Date table creation.
- DAX measure development.
- Interactive visualizations.
- Slicer configuration.
- Dashboard formatting.
| Content Type | Total Titles | Percentage |
|---|---|---|
| Movie | 6,131 | 69.62% |
| TV Show | 2,676 | 30.38% |
| Total | 8,807 | 100.00% |
Insight: Movies represent the largest portion of the Netflix catalog, accounting for approximately 69.62% of all titles.
The top years by catalog additions are:
| Year Added | Total Titles |
|---|---|
| 2019 | 2,016 |
| 2020 | 1,879 |
| 2018 | 1,649 |
| 2021 | 1,498 |
| 2017 | 1,188 |
| 2016 | 429 |
| 2015 | 82 |
| 2014 | 24 |
| 2011 | 13 |
| 2013 | 11 |
Insight: 2019 recorded the highest number of content additions, with 2,016 titles.
| Country | Total Titles |
|---|---|
| United States | 3,690 |
| India | 1,046 |
| United Kingdom | 806 |
| Canada | 445 |
| France | 393 |
| Japan | 318 |
| Spain | 232 |
| South Korea | 231 |
| Germany | 226 |
| Mexico | 169 |
Insight: The United States has the largest country contribution, followed by India and the United Kingdom.
| Genre | Total Titles |
|---|---|
| International Movies | 2,752 |
| Dramas | 2,427 |
| Comedies | 1,674 |
| International TV Shows | 1,351 |
| Documentaries | 869 |
| Action & Adventure | 859 |
| TV Dramas | 763 |
| Independent Movies | 756 |
| Children & Family Movies | 641 |
| Romantic Movies | 616 |
Insight: International Movies and Dramas are the two largest genre categories by title count.
| Metric | Value |
|---|---|
| Average Duration | 99.56 minutes |
| Median Duration | 98 minutes |
| Minimum Duration | 3 minutes |
| Maximum Duration | 312 minutes |
Duration distribution:
| Duration Category | Total Movies |
|---|---|
| 60 minutes or less | 487 |
| 61β90 minutes | 1,506 |
| 91β120 minutes | 2,996 |
| More than 120 minutes | 1,142 |
Insight: The 91β120-minute category represents the largest movie duration group.
| Season Category | Total TV Shows |
|---|---|
| 1 Season | 1,793 |
| 2 Seasons | 425 |
| 3 Seasons | 199 |
| 4 Seasons | 95 |
| 5+ Seasons | 164 |
Insight: Approximately 67% of TV Shows have only one season, while approximately 82.9% have no more than two seasons.
The project uses PostgreSQL with the database and schema below:
CREATE DATABASE netflix_analytics;
CREATE SCHEMA netflix;| Table | Description |
|---|---|
netflix.netflix_titles |
Main Netflix content information |
netflix.netflix_country |
Country information associated with each title |
netflix.netflix_genre |
Genre information associated with each title |
sql/
β
βββ 01_create_database.sql
βββ 02_data_validation.sql
βββ 03_basic_analysis.sql
βββ 04_aggregation_analysis.sql
βββ 05_case_when_analysis.sql
βββ 06_join_analysis.sql
βββ 07_cte_analysis.sql
βββ 08_window_functions.sql
βββ 09_business_insights.sql
The project contains four interactive dashboard pages designed to analyze different aspects of the Netflix catalog.
Provides a high-level overview of the Netflix content catalog.
Key Visualizations:
- Total Titles.
- Total Movies.
- Total TV Shows.
- Total Countries.
- Movie vs TV Show Distribution.
- Content Added Trend.
- Top 10 Countries by Content.
- Top 10 Genres by Content.
- Content Rating Distribution.
Explores content distribution by genre, country, content type, and rating classification.
Key Visualizations:
- Total Genres.
- Total Countries.
- Content Type Distribution.
- Top 15 Genres.
- Global Content Distribution.
- Genre by Content Type.
- Content Rating Classification.
Analyzes original release years and Netflix catalog addition patterns.
Key Visualizations:
- Total Titles.
- Average Release Year.
- Earliest Release Year.
- Latest Release Year.
- Content Release Trend.
- Content Addition Trend.
- Content Addition by Month.
- Content Addition by Year and Month.
Explores the characteristics of Movies and TV Shows.
Key Visualizations:
- Total Movies.
- Total TV Shows.
- Average Movie Duration.
- Average TV Show Seasons.
- Movie Duration Distribution.
- TV Show Season Distribution.
- Movie vs TV Show Release Trend.
- Average Movie Duration by Release Year.
- Average TV Show Seasons by Release Year.
The analysis identified several important findings:
- Movie-Dominated Catalog: Movies account for 69.62% of the catalog, while TV Shows account for 30.38%.
- Global Content Representation: The catalog contains titles associated with 122 countries, with the United States contributing the largest number.
- Genre Concentration: International Movies and Dramas are the two largest genre categories.
- Content Rating Distribution: Mature is the largest analytical rating group, representing approximately 45.52% of the catalog.
- Catalog Addition Peak: 2019 recorded the highest number of content additions, with 2,016 titles.
- Movie Duration Profile: The 91β120-minute category is the largest movie duration group.
- TV Show Season Profile: Approximately 67% of TV Shows have one season.
For a more detailed explanation, see:
Based on the findings, several areas are recommended for further evaluation:
- Evaluate opportunities for international content diversification.
- Review genre representation and potential content gaps.
- Evaluate family and children's content opportunities.
- Analyze one-season and multi-season TV Shows separately.
- Monitor the balance between Movies and TV Shows.
- Use monthly catalog addition patterns as a planning baseline.
- Evaluate the movie duration profile.
- Assess geographic concentration and representation.
These recommendations should be evaluated using additional data such as viewing hours, completion rates, subscriber information, content costs, and regional engagement.
For the complete recommendations, see:
The following is the recommended repository structure:
netflix-analytics/
β
βββ dashboard/
β βββ netflix_analytics.pbix
β βββ screenshots/
β βββ netflix_overview.png
β βββ content_analysis.png
β βββ release_addition_trends.png
β βββ movie_tv_show_insights.png
|
βββ data/
β βββ raw
β | βββ netflix_titles.csv
β βββ processed
β βββ netflix_cleaned.csv
β βββ netflix_country.csv
β βββ netflix_genre.csv
β βββ netflix_main.csv
|
βββ notebooks/
β βββ 01_Data_Understanding.ipynb
β βββ 02_Exploratory_Data_Analysis.ipynb
β
βββ sql/
β βββ 01_create_database.sql
β βββ 02_data_validation.sql
β βββ 03_basic_analysis.sql
β βββ 04_aggregation_analysis.sql
β βββ 05_case_when_analysis.sql
β βββ 06_join_analysis.sql
β βββ 07_cte_analysis.sql
β βββ 08_window_functions.sql
β βββ 09_business_insights.sql
β
βββ business_insight.md
βββ recommendation.md
βββ README.md
Several limitations should be considered when interpreting the results:
- Catalog Metadata Only: The dataset contains content information, not actual viewing or streaming performance.
- No Revenue Information: Revenue, profit, production costs, and acquisition costs are not available.
- No Audience Engagement Data: The dataset does not include views, watch hours, completion rates, or subscriber behavior.
- Multiple Countries: A title can be associated with more than one production country. Therefore, country counts are not mutually exclusive.
- Multiple Genres: A title can belong to multiple genre categories. Genre counts may exceed the total number of unique titles when aggregated.
- Missing Addition Dates: Ten records have missing
date_addedvalues. These records were retained without inventing dates. - Analytical Rating Groups: The rating categories used in this project are simplified analytical groupings and are not an official unified Netflix classification.
Consequently, the findings describe catalog composition and addition patterns. They should not be interpreted as direct evidence of audience preferences, commercial success, or Netflix's internal business strategy.
This project demonstrates how raw content metadata can be transformed into structured analytical datasets, explored using Python and SQL, and presented through interactive Power BI dashboards.
By combining data preparation, exploratory analysis, database querying, visualization, and business interpretation, the project provides a comprehensive overview of the Netflix content catalog and highlights opportunities for further investigation.



