Analyzing Netflix Movie Trends: Are Movies Getting Shorter?

I recently conducted a data analysis project on Netflix movies, and I’m excited to share some intriguing insights with you! In a world where binge-watching has become the norm, I set out to investigate whether movies on Netflix are getting shorter over time. The answer? Well, it’s not that straightforward.

🍿 Movie Duration Trends: While some movies have indeed become more concise, it’s essential to note that not all genres are following this trend.

Here’s what I discovered:

📉 Decline in Length: Genres like Children’s and Documentaries have shown a decline in movie length. It seems that audiences in these categories are favoring shorter, more focused content.

📈 Consistency: Interestingly, genres like Stand-up comedy have remained relatively consistent in their movie durations. This suggests that these genres are maintaining a stable viewing experience.

Further Exploration:

1. Loading your friend’s data into a dictionary

Netflix! What started in 1997 as a DVD rental service has since exploded into the largest entertainment/media company by market capitalization, boasting over 200 million subscribers as of January 2021.

Given the large number of movies and series available on the platform, it is a perfect opportunity to flex our data manipulation skills and dive into the entertainment industry. Our friend has also been brushing up on their Python skills and has taken a first crack at a CSV file containing Netflix data. For their first order of business, they have been performing some analyses, and they believe that the average duration of movies has been declining.

As evidence of this, they have provided us with the following information. For the years from 2011 to 2020, the average movie durations are 103, 101, 99, 100, 100, 95, 95, 96, 93, and 90, respectively.

If we’re going to be working with this data, we know a good place to start would be to probably start working with pandas. But first we’ll need to create a DataFrame from scratch. Let’s start by creating a Python object covered in Intermediate Python: a dictionary!

2. Creating a DataFrame from a dictionary

To convert our dictionary movie_dict to a pandas DataFrame, we will first need to import the library under its usual alias. We’ll also want to inspect our DataFrame to ensure it was created correctly. Let’s perform these steps now.

3. A visual inspection of our data

Alright, we now have a pandas DataFrame, the most common way to work with tabular data in Python. Now back to the task at hand. We want to follow up on our friend’s assertion that movie lengths have been decreasing over time. A great place to start will be a visualization of the data.

Given that the data is continuous, a line plot would be a good choice, with the dates represented along the x-axis and the average length in minutes along the y-axis. This will allow us to easily spot any trends in movie durations. There are many ways to visualize data in Python, but matploblib.pyplot is one of the most common packages to do so.

Note: In order for us to correctly test your plot, you will need to initalize a matplotlib.pyplot Figure object, which we have already provided in the cell below. You can continue to create your plot as you have learned in Intermediate Python.

4. Loading the rest of the data from a CSV

Well, it looks like there is something to the idea that movie lengths have decreased over the past ten years! But equipped only with our friend’s aggregations, we’re limited in the further explorations we can perform. There are a few questions about this trend that we are currently unable to answer, including:

  1. What does this trend look like over a longer period of time?
  2. Is this explainable by something like the genre of entertainment?

Upon asking our friend for the original CSV they used to perform their analyses, they gladly oblige and send it. We now have access to the CSV file, available at the path "datasets/netflix_data.csv". Let’s create another DataFrame, this time with all of the data. Given the length of our friend’s data, printing the whole DataFrame is probably not a good idea, so we will inspect it by printing only the first five rows.

5. Filtering for movies!

Okay, we have our data! Now we can dive in and start looking at movie lengths.

Or can we? Looking at the first five rows of our new DataFrame, we notice a column type. Scanning the column, it’s clear there are also TV shows in the dataset! Moreover, the duration column we planned to use seems to represent different values depending on whether the row is a movie or a show (perhaps the number of minutes versus the number of seasons)?

Fortunately, a DataFrame allows us to filter data quickly, and we can select rows where type is Movie. While we’re at it, we don’t need information from all of the columns, so let’s create a new DataFrame netflix_movies containing only titlecountrygenrerelease_year, and duration.

Let’s put our data subsetting skills to work!

6. Creating a scatter plot

Okay, now we’re getting somewhere. We’ve read in the raw data, selected rows of movies, and have limited our DataFrame to our columns of interest. Let’s try visualizing the data again to inspect the data over a longer range of time.

This time, we are no longer working with aggregates but instead with individual movies. A line plot is no longer a good choice for our data, so let’s try a scatter plot instead. We will again plot the year of release on the x-axis and the movie duration on the y-axis.

7. Digging deeper

This is already much more informative than the simple plot we created when our friend first gave us some data. We can also see that, while newer movies are overrepresented on the platform, many short movies have been released in the past two decades.

Upon further inspection, something else is going on. Some of these films are under an hour long! Let’s filter our DataFrame for movies with a duration under 60 minutes and look at the genres. This might give us some insight into what is dragging down the average.

8. Marking non-feature films

Interesting! It looks as though many of the films that are under 60 minutes fall into genres such as “Children”, “Stand-Up”, and “Documentaries”. This is a logical result, as these types of films are probably often shorter than 90 minute Hollywood blockbuster.

We could eliminate these rows from our DataFrame and plot the values again. But another interesting way to explore the effect of these genres on our data would be to plot them, but mark them with a different color.

In Python, there are many ways to do this, but one fun way might be to use a loop to generate a list of colors based on the contents of the genre column. Much as we did in Intermediate Python, we can then pass this list to our plotting function in a later step to color all non-typical genres in a different color!

Note: Although we are using the basic colors of red, blue, green, and black, matplotlib has many named colors you can use when creating plots. For more information, you can refer to the documentation here!

9. Plotting with color!

Lovely looping! We now have a colors list that we can pass to our scatter plot, which should allow us to visually inspect whether these genres might be responsible for the decline in the average duration of movies.

This time, we’ll also spruce up our plot with some additional axis labels and a new theme with plt.style.use(). The latter isn’t taught in Intermediate Python, but can be a fun way to add some visual flair to a basic matplotlib plot. You can find more information on customizing the style of your plot here!

10. What next?

Well, as we suspected, non-typical genres such as children’s movies and documentaries are all clustered around the bottom half of the plot. But we can’t know for certain until we perform additional analyses.

Congratulations, you’ve performed an exploratory analysis of some entertainment data, and there are lots of fun ways to develop your skills as a Pythonic data scientist. These include learning how to analyze data further with statistics, creating more advanced visualizations, and perhaps most importantly, learning more advanced ways of working with data in pandas. This latter skill is covered in our fantastic course Data Manipulation with pandas.

We hope you enjoyed this application of the skills learned in Intermediate Python, and wish you all the best on the rest of your journey!

-Bishesh Giri

Partner Institutions with DigiSchool & UK Colleges

If you are a +2 graduate who is thinking of applying for Merit Based IT Scholarship worth Rs.2 crore for BSc (Hons) Computer Science with Artificial Intelligence (AI), please see below to check if the college from which you graduated +2 is a partner institution with DigiSchool and UK colleges:

Partner Institutions – DigiSchool:

Aksharaa School
Amrit Secondary Boarding School
Baba School
Baby Star Montessori Pvt. Ltd
Babylon National School
Bal Netra Academy
Best’s montessori Elementary school
Bhaktapur NIST School
Bhibuti Pathsala
Bouddha International School
Brain Land Academy
Buddha Public School
Creative Academy
Deep High School
Deurali Panchakannya Belivers English School
Diamond Higher Secondary School
Dikshalaya Nepal Foundation
Elite Grand School
Euro School Chhauni
Everest Public School
Gladstone Academy
Global Pathsala
Harmony Education
Herald Secondary School
Imperial World School
Janapremi World School
Jesse’s International Boarding Sec. School
Kaasthamandap Vidhyalaya
Kanjirowa National Higher Secondary School
Kashyap Vidyapeeth
Kathmandu Euro School
Kathmandu Pragya Kunja School
Kathmandu Shikhyalaya
Kids School
Maria School
Name Of Schools
National Model science School
Navajyoti English Boarding School
New Horizon English Boarding H. S. School
Nexus International Academy
Nic Academy
Nirmal Batika Academy
Om Gayan Mandir
Pharsatikar Siddhartha English Boarding School
Prarambha World School
Precious School
Prime Global School
Radiant Readers’ Academy
Raj Vidhya Pathshala
Reliance Public School
Samriddhi School
Sanskar English School
Sathya sai shiksha School
Shankar National English Secondary School
Shikhar school
Shristi English School Kathmandu
Social Public School
Sri Sri Ravishankar Vidya Mandir
Srijana Secondary Boarding School
Sudesha School
Sunaulo Kshitiz Shikshyalaya
Supreme Academy School
The Sunshine School
Triyog high School
Ujjwal Tara School
Unnati Secondary Pvt. Ltd
Valley Public High School
Valley View
Vidhya Sagar Sec. School
Vinayak Shanti Niketan Ma Vi Pvt.Ltd
Vishwa Adarsha Secondary School
Wilson Academy
Wings Academy

Partner Institutions – UK Colleges:

KMC Lalitpur
KMC bagbazar
KMC College wing
VS Niketan
Texas College
Nepalaya College
K n K College
Everest Florida
IST Secondary School
Dakshyata International College
Janapremi World School
Kanjirowa National School

Apply Now for the Merit Based IT Scholarship – Click Here!

Study IT with up to 100% Scholarship in Nepal – Learn How!

For recent +2 graduates of Nepal’s top colleges, venturing into the world of Information Technology (IT) is an exciting prospect. The thriving global IT industry offers a wealth of opportunities, spanning diverse roles from software developers to network engineers, cybersecurity analysts, data scientists, and beyond. 

Recognizing the immense potential within these aspiring young individuals, Sunway College Kathmandu in collaboration with DigiSchool, proudly introduces the “Merit-Based IT Scholarship for +2 graduate students,” a prestigious initiative valued at Rs.2 crores. This scholarship not only empowers these individuals to venture into the rapidly expanding technology sector but also actively nurtures their potential, fostering talent and innovation while ensuring accessible, high-quality IT education.

Moreover, keeping the vision of creating AI leaders at the forefront, Sunway College Kathmandu proudly presents the prestigious BSc (Hons) Computer Science with Artificial Intelligence (AI) program in academic partnership with Birmingham City University, UK. This academic partnership not only unlocks doors but also propels aspiring IT professionals towards excellence in the dynamic realm of technology, significantly elevating their prospects for success.

Keep reading to discover further details about the Merit Based IT Scholarship

What is Merit Based IT Scholarship?

The Merit Based IT Scholarship is a prestigious initiative by Sunway College Kathmandu in collaboration with DigiSchool in Nepal. This scholarship is exclusively designed for +2 graduates who want to study for a Bachelor’s Degree in the IT sector. Moreover, it is open to students who have recently completed their +2 studies in any subject from our esteemed DigiSchool partner institutions.

Likewise, this scholarship is for students who have a strong passion for pursuing a career in the diverse and dynamic realm of Information Technology (IT), which encompasses a wide range of exciting careers such as software development, network engineering, cybersecurity analysis, data science artificial intelligence, cloud computing and more.

Moreover, this scholarship program serves as a powerful initiative to inspire and empower young individuals, fostering their aspirations, and motivation in the world of technology.

Who is eligible for the Merit Based IT Scholarship?

The Scholarship program, offered by Sunway College Kathmandu in collaboration with DigiSchool  in Nepal, is for recent +2 graduates from our DigiSchool partners interested in IT careers. In Sunway College Kathmandu, this scholarship opportunity is specifically designed for students pursuing a BSc (Hons) in Computer Science with Artificial Intelligence (AI).

Verify if the college from which you graduated +2 is affiliated with DigiSchool as a partner institution.

As this is merit-based, it means that if you were among the high-achieving students during your college years with a GPA of 3.0 or higher, this scholarship can be your stepping stone.

Moreover, there are different tiers of scholarships according to your grade, which are:

100% Scholarship:

  • Seats: 2
  • Eligibility: Min 3.8 GPA followed by an interview for 100% scholarship.

50% Scholarship: 

  • Seats: 10 
  • Eligibility: Min 3.5 GPA followed by an interview for 50% scholarship.

30% scholarship:

  • Seats: 88
  • Eligibility: Min 3.0 GPA followed by an interview for 30% scholarship.

How many scholarship seats are available for the Merit Based IT Scholarship program?

There are a total of 100 scholarship seats available for the Merit Based IT Scholarship program.

What is the deadline for applying to the scholarship program?

The last date to apply for the scholarship program is September 17, 2023.

How do you Apply for a Merit Based IT Scholarship?

You can apply for a Merit Based IT Scholarship by

  • Ensuring you meet the eligibility criteria , which include being a recent +2 graduate from one of our DigiSchool partner institutions and maintaining a GPA of 3.0 or higher.
  • Visiting Sunway College Kathmandu’s website, and you will find an online scholarship application form. Fill out this form with accurate and up-to-date information. Be sure to double-check your entries to avoid any errors.

Link for the Scholarship Registration Form

  • Submitting your application after reviewing it to ensure all details are correct.
  • After submitting the application, wait for evaluation. Our scholarship committee will carefully evaluate all applications submitted through the college’s website to identify deserving candidates based on merit.
  • Additionally, applicants must demonstrate their English proficiency with the BCU recognized English Tests: IELTS 6.0  overall with 5.5 minimum in all bands

In case of any confusion or if you have questions during the application process, please feel free to contact us directly through the provided contact details on our website. We are here to assist you.

Why is this Scholarship Notable?

The Merit Based IT Scholarship in collaboration with DigiSchool is not just a financial assistance program, it is a way to access quality education and start a remarkable journey in the world of Information Technology (IT).

Here’s why this scholarship is truly exceptional:

  • Investing in Your Dreams: This scholarship allows you to pursue your IT dreams without financial constraints. Whether it’s developing advanced software, creating innovative tech solutions, or diving into the world of artificial intelligence (AI), this scholarship empowers you to follow your passion without the burden of tuition fees.
  • Scholarship for Bachelor Degree in Nepal: If your dream is to establish a career in the IT field and study in Nepal, the Merit Based IT Scholarship is for you. This prestigious scholarship covers 100% of tuition fees and enables you to pursue fields like software development, network engineering, cybersecurity, data science, cloud computing, and artificial intelligence (AI). Moreover, scholarship recipients gain exclusive access to enroll in Sunway College Kathmandu’s esteemed BSc (Hons) Computer Science with AI program, recognized as one of the top college programs in Nepal in the field of IT.
  • BSc (Hons) Computer Science with Artificial Intelligence (AI): As a recipient of this prestigious scholarship, you will have the exclusive opportunity to enrol in the British Degree BSc (Hons) Computer Science with Artificial Intelligence program offered at Sunway College Kathmandu. This program is affiliated with Birmingham City University in the UK, which holds a distinguished global ranking. This program teaches you specialised skills in AI—a field that’s growing rapidly. It’s a four-year program, including a whole year of hands-on experience. By choosing this program, you put yourself at the forefront of the IT industry, ready to succeed in a field where innovation is key.
  • Networking Opportunities: As a scholarship recipient, you will have the privilege of connecting with IT experts, mentors, and fellow scholars. These connections can open doors to exciting collaborations, career guidance, and valuable insights into the tech industry’s ever-evolving landscape.
  • Career Advancement: By earning the Merit Based IT Scholarship, you validate your skills and dedication to IT excellence. This recognition makes it easier to secure top-tier jobs in the dynamic IT sector. Prospective employers will readily acknowledge your distinction, giving you a competitive lead in the job market.

Apply Now for the Merit Based IT Scholarship – Click Here!