We will initially import the required libraries:
Then we will import the dataset using read_csv function from pandas library
Then, we will identify null values by using isna() function and take a sum of it after which we will eliminate all the null values using dropna() function
Now, we will perform NLP (Natural Language Processing ) using WordCloud and STOPWORDS from wordcloud library
The main question:
What is NLP?
NLP is a subfield of Artificial Intelligence concerned with interactions between computers and human language
Then, we will use matplotlib to plot the wordcloud images for:
3. Content description
Majority of the actors' names start with these words:
Majority of the directors' names start with these words:
Genres generally preferred by audiences are:
1. International Movies
2. International Dramas (Most popular: Korean Drama)
Keywords that are commonly used in every movie description:
Now, we will be analysing which type of content (Rating based) is watched around the world in different countries
For that, we will be using Plotly Express from plotly library which consists of more than 30 functions and can perform more computations compared to graph_objects from the same library
Initially, we will create a new dataframe and group it as per country, rating and release year using the groupby() function
After dataframe creation, we will create a choropleth map that will show what type of rating-based content is watched in different countries
What is choropleth map?
It is a thematic map used to represent statistical data by various colour shading patterns and symbols for predefined geographic areas
Key insights from the map above:
1. India : 7+ (TV)
2. USA : Un-rated, 7+ and General audience (G)
3. Russia: 14+ (TV)
4. Bangladesh : 14+ (TV)
5. UK : PG-13, General audiences (G), R-Rated
6. South America : TV-14, General audience (G)
This would help in setting up recommendations next time a consumer from any country opens Netflix!
Have a great day folks!
Netflix and Chill...
PGDM in Big Data Analytics 2019-21
Goa Institute of Management