SAMANTUS Python for Data Analytics — Complete Training Manual CAPSTONE PROJECT 04
← Back to Course Index

Netflix Data Analysis


On This Page

Capstone Project 4: Netflix Data Analysis


C4.1  Project Overview

This project analyzes Netflix's content catalog to understand genre distribution, content growth over time, and the balance between movies and TV shows.

C4.2  Business Problem

Netflix's content strategy team wants to understand what type of content has been added over the years and which genres dominate the platform, to guide future content investment decisions.

C4.3  Dataset Description

ColumnDescription
titleName of the movie/show
typeMovie or TV Show
genrePrimary genre category
date_addedDate the title was added to Netflix
release_yearYear the title was originally released

Sample scope: ~3,100 titles spanning content added between 2015-2025.

C4.4  Objectives


C4.5  Step-by-Step Solution

C4.6  Complete Python Code

► netflix_analysis.py
import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv("netflix_titles.csv")
df = df.dropna(subset=['genre','date_added'])

df['date_added'] = pd.to_datetime(df['date_added'])
df['year_added'] = df['date_added'].dt.year

genre_counts = df['genre'].value_counts()
yearly_additions = df.groupby('year_added').size()
type_split = df['type'].value_counts(normalize=True) * 100

print("Top Genre:", genre_counts.index[0])
print("Movies vs TV Shows %:\n", type_split.round(1))

C4.7  Expected Output

Output
Top Genre: Drama
Movies vs TV Shows %:
Movies   69.0
TV Shows   31.0

C4.8  Visualizations

Figure C4.1 — Number of Netflix titles by genre.
Figure C4.1 — Number of Netflix titles by genre.
Figure C4.2 — Content added to Netflix per year (2015-2025).
Figure C4.2 — Content added to Netflix per year (2015-2025).
Figure C4.3 — Split between Movies and TV Shows.
Figure C4.3 — Split between Movies and TV Shows.

C4.9  Key Insights

C4.10  Business Recommendations