Question: Use Python scripting to answer the following analysis question: Is there a relationship between the duration of movies (in minutes) and their ratings? Objective :

Use Python scripting to answer the following analysis question:

Is there a relationship between the duration of movies (in minutes) and their ratings?

  • Objective: Investigate whether movie length correlates with the type of rating it receives, which might suggest content pacing expectations.
  • Analysis: Create scatter plots with duration on one axis and rating on another, examining potential patterns or clusters.
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns df= pd.read_csv("netflix_titles.csv") df.head()
Data types show_id Int64 type string[python ] title string[python ] director string[python] cast string[python ] country string[python ] date_added datetime64[ns ] release_year int64 rating string[python ] listed_in string[python ] duration_value float64 duration_unit string[python ] is_recent bool dtype: object show_id type title director cast country date_added release_year rating listed_in duration_value duration_unit is_recent Dick Kirsten 0 1 Movie Not Given United Johnson Is 2021-09-25 2020 PG-13 Documentaries 90.0 min True Johnson States Dead Ama Qamata, International TV TV Blood Not Khosi Ngema, South TV- Shows, TV 1 2 2021-09-24 2021 2.0 Seasons True Show Water Given Gail Mabalane, Africa MA Dramas, TV Thaban. Mysteries Sami Bouajila, TV Julien Tracy Gotoas, France, TV- Crime TV Shows, 2 3 Ganglands 2021-09-24 2021 International TV 1.0 Season True Show Leclercq Samuel Jouy, Belgium MA Shows, TV Act.. Nabi. TV Jailbirds Not Not 2021 TV- Docuseries, Reality 3 4 Not Given 2021-09-24 1.0 Season True Show New Orleans Given Given MA TV Mayur More, International TV TV Not Jitendra TV- 4 5 Kota Factory India 2021-09-24 2021 Shows, Romantic 2.0 Seasons True Show Given Kumar, Ranjan MA TV Shows, TV

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!