You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3341 lines
1.0 MiB

2 years ago
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"___\n",
"\n",
"<a href='http://www.pieriandata.com'><img src='../Pierian_Data_Logo.png'/></a>\n",
"___\n",
"<center><em>Copyright by Pierian Data Inc.</em></center>\n",
"<center><em>For more information, visit us at <a href='http://www.pieriandata.com'>www.pieriandata.com</a></em></center>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Capstone Project\n",
"## Overview\n",
"\n",
"If you are planning on going out to see a movie, how well can you trust online reviews and ratings? *Especially* if the same company showing the rating *also* makes money by selling movie tickets. Do they have a bias towards rating movies higher than they should be rated?\n",
"\n",
"### Goal:\n",
"\n",
"**Your goal is to complete the tasks below based off the 538 article and see if you reach a similar conclusion. You will need to use your pandas and visualization skills to determine if Fandango's ratings in 2015 had a bias towards rating movies better to sell more tickets.**\n",
"\n",
"---\n",
"---\n",
"\n",
"**Complete the tasks written in bold.**\n",
"\n",
"---\n",
"----\n",
"\n",
"## Part One: Understanding the Background and Data\n",
"\n",
"\n",
"**TASK: Read this article: [Be Suspicious Of Online Movie Ratings, Especially Fandangos](http://fivethirtyeight.com/features/fandango-movies-ratings/)**"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----\n",
"\n",
"**TASK: After reading the article, read these two tables giving an overview of the two .csv files we will be working with:**\n",
"\n",
"### The Data\n",
"\n",
"This is the data behind the story [Be Suspicious Of Online Movie Ratings, Especially Fandangos](http://fivethirtyeight.com/features/fandango-movies-ratings/) openly available on 538's github: https://github.com/fivethirtyeight/data. There are two csv files, one with Fandango Stars and Displayed Ratings, and the other with aggregate data for movie ratings from other sites, like Metacritic,IMDB, and Rotten Tomatoes.\n",
"\n",
"#### all_sites_scores.csv"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"-----\n",
"\n",
"`all_sites_scores.csv` contains every film that has a Rotten Tomatoes rating, a RT User rating, a Metacritic score, a Metacritic User score, and IMDb score, and at least 30 fan reviews on Fandango. The data from Fandango was pulled on Aug. 24, 2015."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Column | Definition\n",
"--- | -----------\n",
"FILM | The film in question\n",
"RottenTomatoes | The Rotten Tomatoes Tomatometer score for the film\n",
"RottenTomatoes_User | The Rotten Tomatoes user score for the film\n",
"Metacritic | The Metacritic critic score for the film\n",
"Metacritic_User | The Metacritic user score for the film\n",
"IMDB | The IMDb user score for the film\n",
"Metacritic_user_vote_count | The number of user votes the film had on Metacritic\n",
"IMDB_user_vote_count | The number of user votes the film had on IMDb"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----\n",
"----\n",
"\n",
"#### fandango_scape.csv"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"`fandango_scrape.csv` contains every film 538 pulled from Fandango.\n",
"\n",
"Column | Definiton\n",
"--- | ---------\n",
"FILM | The movie\n",
"STARS | Number of stars presented on Fandango.com\n",
"RATING | The Fandango ratingValue for the film, as pulled from the HTML of each page. This is the actual average score the movie obtained.\n",
"VOTES | number of people who had reviewed the film at the time we pulled it."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----\n",
"\n",
"**TASK: Import any libraries you think you will use:**"
]
},
{
"cell_type": "code",
"execution_count": 173,
"metadata": {},
"outputs": [],
"source": [
"# IMPORT HERE!"
]
},
{
"cell_type": "code",
"execution_count": 174,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Part Two: Exploring Fandango Displayed Scores versus True User Ratings\n",
"\n",
"Let's first explore the Fandango ratings to see if our analysis agrees with the article's conclusion.\n",
"\n",
"**TASK: Run the cell below to read in the fandango_scrape.csv file**"
]
},
{
"cell_type": "code",
"execution_count": 175,
"metadata": {},
"outputs": [],
"source": [
"fandango = pd.read_csv(\"fandango_scrape.csv\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Explore the DataFrame Properties and Head.**"
]
},
{
"cell_type": "code",
"execution_count": 176,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>VOTES</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Fifty Shades of Grey (2015)</td>\n",
" <td>4.0</td>\n",
" <td>3.9</td>\n",
" <td>34846</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Jurassic World (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>34390</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>American Sniper (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>34085</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Furious 7 (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>33538</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Inside Out (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>15749</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM STARS RATING VOTES\n",
"0 Fifty Shades of Grey (2015) 4.0 3.9 34846\n",
"1 Jurassic World (2015) 4.5 4.5 34390\n",
"2 American Sniper (2015) 5.0 4.8 34085\n",
"3 Furious 7 (2015) 5.0 4.8 33538\n",
"4 Inside Out (2015) 4.5 4.5 15749"
]
},
"execution_count": 176,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 177,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 504 entries, 0 to 503\n",
"Data columns (total 4 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 FILM 504 non-null object \n",
" 1 STARS 504 non-null float64\n",
" 2 RATING 504 non-null float64\n",
" 3 VOTES 504 non-null int64 \n",
"dtypes: float64(2), int64(1), object(1)\n",
"memory usage: 15.9+ KB\n"
]
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 178,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>VOTES</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>count</th>\n",
" <td>504.000000</td>\n",
" <td>504.000000</td>\n",
" <td>504.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>mean</th>\n",
" <td>3.558532</td>\n",
" <td>3.375794</td>\n",
" <td>1147.863095</td>\n",
" </tr>\n",
" <tr>\n",
" <th>std</th>\n",
" <td>1.563133</td>\n",
" <td>1.491223</td>\n",
" <td>3830.583136</td>\n",
" </tr>\n",
" <tr>\n",
" <th>min</th>\n",
" <td>0.000000</td>\n",
" <td>0.000000</td>\n",
" <td>0.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25%</th>\n",
" <td>3.500000</td>\n",
" <td>3.100000</td>\n",
" <td>3.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50%</th>\n",
" <td>4.000000</td>\n",
" <td>3.800000</td>\n",
" <td>18.500000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>75%</th>\n",
" <td>4.500000</td>\n",
" <td>4.300000</td>\n",
" <td>189.750000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>max</th>\n",
" <td>5.000000</td>\n",
" <td>5.000000</td>\n",
" <td>34846.000000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" STARS RATING VOTES\n",
"count 504.000000 504.000000 504.000000\n",
"mean 3.558532 3.375794 1147.863095\n",
"std 1.563133 1.491223 3830.583136\n",
"min 0.000000 0.000000 0.000000\n",
"25% 3.500000 3.100000 3.000000\n",
"50% 4.000000 3.800000 18.500000\n",
"75% 4.500000 4.300000 189.750000\n",
"max 5.000000 5.000000 34846.000000"
]
},
"execution_count": 178,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Let's explore the relationship between popularity of a film and its rating. Create a scatterplot showing the relationship between rating and votes. Feel free to edit visual styling to your preference.**"
]
},
{
"cell_type": "code",
"execution_count": 179,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 180,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABRUAAAIhCAYAAADQNF1GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAAB/vElEQVR4nOz9e5ycdX3//z9eu7Ob3U2y4SBJiJhAomiyHIoHEqESNaCCWE/YFkWrVIVWi1bU30eKfq3ywdZWaz01WsvBUqmWWk9QD+CHQBFMRQFNwimchYRDJJtkD7Oz+/79MTNh2Mzuzuzu7Ozs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2TswI8eUnCkMFSVJkiRJkqbQbJ6kZ0F7K4ce2MGlZx7Lxnt38O6v/2Kf5//24w7le+89nj+5aOOMG1NyJomUUr3roCkSEZtWrVq1atOmTfWuiiRJkiRJs15ucIjs4NCsmqSnJ5vjyZ4BvvjTu/nGxpFbar5l9VL+/KXPZv+5LTMyXJ0uurq62Lx58+aUUle1ZX1XJEmSJEmS6mA2TtKTaQo23rtj1EAR4N9+/gDHHnoAJx+5eIpqpmrNzNhbkiRJkiRJ005uKPHV6yqb/fmr199DbsgettOVoaIkSZIkSZKmxPDZn0fj7M/Tm6GiJEmSJEmSpkRx9udKdfcN1KgmmihDRUmSJEmSJE2JBe2tVe3v7M/Tl6GiJEmSJEmSpkRne4auJZ0V7du1pJPOducYnq4MFSVJkiRJkjQlWpubOGvt8or2PXvtClqbja6mK98ZSZIkSZIkTYlMcxMnrlzEGWuWjrrfGWuWsW7lQjKGitOWbUglSZIkSZI0ZTpaM5x3ykpWH3Yg6zdsZdPDT80G3bWkk7PXrmDdyoV0tBpbTWe+O5IkSZI
"text/plain": [
"<Figure size 1500x600 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Calculate the correlation between the columns:**"
]
},
{
"cell_type": "code",
"execution_count": 181,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 182,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>VOTES</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>STARS</th>\n",
" <td>1.000000</td>\n",
" <td>0.994696</td>\n",
" <td>0.164218</td>\n",
" </tr>\n",
" <tr>\n",
" <th>RATING</th>\n",
" <td>0.994696</td>\n",
" <td>1.000000</td>\n",
" <td>0.163764</td>\n",
" </tr>\n",
" <tr>\n",
" <th>VOTES</th>\n",
" <td>0.164218</td>\n",
" <td>0.163764</td>\n",
" <td>1.000000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" STARS RATING VOTES\n",
"STARS 1.000000 0.994696 0.164218\n",
"RATING 0.994696 1.000000 0.163764\n",
"VOTES 0.164218 0.163764 1.000000"
]
},
"execution_count": 182,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Assuming that every row in the FILM title column has the same format:**\n",
"\n",
" Film Title Name (Year)\n",
" \n",
"**Create a new column that is able to strip the year from the title strings and set this new column as YEAR**"
]
},
{
"cell_type": "code",
"execution_count": 183,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 184,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: How many movies are in the Fandango DataFrame per year?**"
]
},
{
"cell_type": "code",
"execution_count": 185,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 186,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2015 478\n",
"2014 23\n",
"2016 1\n",
"1964 1\n",
"2012 1\n",
"Name: YEAR, dtype: int64"
]
},
"execution_count": 186,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Visualize the count of movies per year with a plot:**"
]
},
{
"cell_type": "code",
"execution_count": 187,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 188,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:xlabel='YEAR', ylabel='count'>"
]
},
"execution_count": 188,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYUAAAEKCAYAAAD9xUlFAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAASdUlEQVR4nO3de/BdZX3v8fdH4q3eAPk1xSQa28Y6nKMizVA8OF5gasG2wvGI1VNLamnT9mCro62l7enFXqb2Yq2XM5zDiBraHpVqKdFhtJyIMna8JYpcbYkOHpIJJiLghaMW/Z4/9pMnm/AL2SR77f1L8n7N7NnPep5nL797ufP7sNZea+1UFZIkATxo3gVIkpYOQ0GS1BkKkqTOUJAkdYaCJKkzFCRJ3aChkOSWJNcluSbJ5tZ3bJIrk9zcno9p/Uny5iRbk1yb5KQha5Mk3dcs9hSeW1UnVtXatnwBsKmq1gCb2jLAmcCa9lgPXDiD2iRJY+Zx+OgsYENrbwDOHuu/pEY+ARyd5Pg51CdJR6xlA6+/gH9OUsD/qqqLgOVVtaON3wYsb+0VwK1jr93W+nawD8cdd1ytXr166kVL0uFsy5YtX6mqhcXGhg6FZ1bV9iTfD1yZ5PPjg1VVLTAmlmQ9o8NLPP7xj2fz5s3Tq1aSjgBJvrSvsUEPH1XV9va8E7gMOBn48u7DQu15Z5u+HVg19vKVrW/vdV5UVWurau3CwqJBJ0k6QIOFQpJHJHnU7jbwPOB6YCOwrk1bB1ze2huBc9tZSKcAd40dZpIkzcCQh4+WA5cl2f2/87+r6oNJPg1cmuQ84EvAi9v8K4DnA1uBu4GXD1ibJGkRg4VCVX0ReNoi/bcDpy/SX8D5Q9UjSdo/r2iWJHWGgiSpMxQkSZ2hIEnqDAVJUjf0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size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: What are the 10 movies with the highest number of votes?**"
]
},
{
"cell_type": "code",
"execution_count": 189,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 190,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>VOTES</th>\n",
" <th>YEAR</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Fifty Shades of Grey (2015)</td>\n",
" <td>4.0</td>\n",
" <td>3.9</td>\n",
" <td>34846</td>\n",
" <td>2015</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Jurassic World (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>34390</td>\n",
" <td>2015</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>American Sniper (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>34085</td>\n",
" <td>2015</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Furious 7 (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>33538</td>\n",
" <td>2015</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Inside Out (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>15749</td>\n",
" <td>2015</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>The Hobbit: The Battle of the Five Armies (2014)</td>\n",
" <td>4.5</td>\n",
" <td>4.3</td>\n",
" <td>15337</td>\n",
" <td>2014</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>Kingsman: The Secret Service (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.2</td>\n",
" <td>15205</td>\n",
" <td>2015</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>Minions (2015)</td>\n",
" <td>4.0</td>\n",
" <td>4.0</td>\n",
" <td>14998</td>\n",
" <td>2015</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>Avengers: Age of Ultron (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.5</td>\n",
" <td>14846</td>\n",
" <td>2015</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>Into the Woods (2014)</td>\n",
" <td>3.5</td>\n",
" <td>3.4</td>\n",
" <td>13055</td>\n",
" <td>2014</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM STARS RATING VOTES \\\n",
"0 Fifty Shades of Grey (2015) 4.0 3.9 34846 \n",
"1 Jurassic World (2015) 4.5 4.5 34390 \n",
"2 American Sniper (2015) 5.0 4.8 34085 \n",
"3 Furious 7 (2015) 5.0 4.8 33538 \n",
"4 Inside Out (2015) 4.5 4.5 15749 \n",
"5 The Hobbit: The Battle of the Five Armies (2014) 4.5 4.3 15337 \n",
"6 Kingsman: The Secret Service (2015) 4.5 4.2 15205 \n",
"7 Minions (2015) 4.0 4.0 14998 \n",
"8 Avengers: Age of Ultron (2015) 5.0 4.5 14846 \n",
"9 Into the Woods (2014) 3.5 3.4 13055 \n",
"\n",
" YEAR \n",
"0 2015 \n",
"1 2015 \n",
"2 2015 \n",
"3 2015 \n",
"4 2015 \n",
"5 2014 \n",
"6 2015 \n",
"7 2015 \n",
"8 2015 \n",
"9 2014 "
]
},
"execution_count": 190,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: How many movies have zero votes?**"
]
},
{
"cell_type": "code",
"execution_count": 191,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 192,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"69"
]
},
"execution_count": 192,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Create DataFrame of only reviewed films by removing any films that have zero votes.**"
]
},
{
"cell_type": "code",
"execution_count": 193,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 194,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----\n",
"\n",
"**As noted in the article, due to HTML and star rating displays, the true user rating may be slightly different than the rating shown to a user. Let's visualize this difference in distributions.**\n",
"\n",
"**TASK: Create a KDE plot (or multiple kdeplots) that displays the distribution of ratings that are displayed (STARS) versus what the true rating was from votes (RATING). Clip the KDEs to 0-5.**"
]
},
{
"cell_type": "code",
"execution_count": 195,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 196,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x1aa0110cdc8>"
]
},
"execution_count": 196,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABh0AAAIhCAYAAABaAXuzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAADRJElEQVR4nOzdd3hUVf7H8feZmfTeG2kQQi8SBBEsNHvXdV0769rrYlt13VXXur9dddfeK3bFgqgoKKAgJfTeIYWSkN6Tmfv7I4FFBIEwk8kkn9fzzHOTW875DBZm7veec4xlWYiIiIiIiIiIiIiIiBwum7cDiIiIiIiIiIiIiIhIx6Cig4iIiIiIiIiIiIiIuIWKDiIiIiIiIiIiIiIi4hYqOoiIiIiIiIiIiIiIiFuo6CAiIiIiIiIiIiIiIm6hooOIiIiIiIiIiIiIiLiFig4iIiIiIiIiIiIiIuIWKjqIiIiIiIiIiIiIiIhbqOggIiIiIiIiIiIiIiJuoaKDiIiIiIiIiIiIiIi4hYoOIiIiIiIiIiIiIiLiFio6iIiIiIiIiIiIiIiIWzi8HaCzMMZsA4KBPG9nERERERERERERr0sFaizLSvR2EBERdzKWZXk7Q6dgjKkICAgI69atm7ejiIiIiIiIiIiIl61fv576+vpKy7LCvZ1FRMSdNNKh7eR169at9/Lly72dQ0REREREREREvKxPnz6sWLFCM2KISIejNR1ERERERERERERERMQtVHQQERERERERERERERG3UNFBRERERERERERERETcQkUHERERERERERERERFxCxUdRERERERERERERETELVR0EBERERERERERERERt1DRQURERERERERERERE3EJFBxERERERERERERERcQufLjoYY4KMMQ8YY9YYY+qMMYXGmFeNMSmtbC/DGPO8MWajMabeGFNsjJltjLnd3dlFRERERERERERERDoany06GGMCgWnAvUAo8BmQB4wDFhpjuh5ieycDy4GrgJ3AJ8ACIAO42m3BRUREREREREREREQ6KIe3AxyGvwJHAbOBEyzLqgIwxowH/g28Chx/MA0ZY3rSXGSoBMZaljVrj2M2YJBbk4uIiIiIiIiIiIiIdEA+OdLBGOMP3NDy6/W7Cg4AlmU9DiwBjjPG5Bxkk48DgcDlexYcWtpzWZY13w2xRUREREREREREREQ6NJ8sOgDDgQhgvWVZC/dx/KOW7ekHasgYkwqcCGywLGuy+yKKiIiIiIiIiIiIiHQuvjq90oCW7YL9HN+1v/9BtHU8zcWXWcYYB3AOzUUNO7AMeN+yrNLWRxURERERERERERER6Rx8teiQ1rLN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Pf6X04Y0AyAC/M2MBlr82lpLrBs3lFREREDpOKDiIiIiIiItJhFVXWc+FLc/goN58A08BjIe827884neqY/m2SweUXQt6AW3DZ/IgqnE6XpU8f1HU2m+EPQ9K4aVR3Ahw2flq3k9Of+pFlBeUeTiwiIiLSeio6iIiIiIiISIe0bkcVZz79I7mbSwn2t/Nqn2VENm6nMSCaoq7ntmmW+rB0tvb6IwBdFv+HsB3zDvraYd1i+MeZfUkID6CgrJZzn5vF54u1zoOIiIi0Tyo6iIiIiIiISIezelslF7w4m8LyOpIiAnn41EyG5L0GQFHXs7Hs/m2eqSz5OEqTjsVg0fXnezDO+oO+NjU6mAfP6sfA1Ejqm1zc9O5C3pi1yXNhRURERFpJRQcRERERERHpUJYXlnPBi7MprmogPSaY+87ow6Ct7+NXv5P6oARKk4/zWrbtPS6myT+c4PJ1JC9/8ZCuDQ1wcPuJPTixTyIAf/98OU9+twbLsjwRVURERKR
"text/plain": [
"<Figure size 1500x600 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Let's now actually quantify this discrepancy. Create a new column of the different between STARS displayed versus true RATING. Calculate this difference with STARS-RATING and round these differences to the nearest decimal point.**"
]
},
{
"cell_type": "code",
"execution_count": 197,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 198,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 199,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>VOTES</th>\n",
" <th>YEAR</th>\n",
" <th>STARS_DIFF</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Fifty Shades of Grey (2015)</td>\n",
" <td>4.0</td>\n",
" <td>3.9</td>\n",
" <td>34846</td>\n",
" <td>2015</td>\n",
" <td>0.1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Jurassic World (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>34390</td>\n",
" <td>2015</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>American Sniper (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>34085</td>\n",
" <td>2015</td>\n",
" <td>0.2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Furious 7 (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>33538</td>\n",
" <td>2015</td>\n",
" <td>0.2</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Inside Out (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>15749</td>\n",
" <td>2015</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>430</th>\n",
" <td>That Sugar Film (2015)</td>\n",
" <td>5.0</td>\n",
" <td>5.0</td>\n",
" <td>1</td>\n",
" <td>2015</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>431</th>\n",
" <td>The Intern (2015)</td>\n",
" <td>5.0</td>\n",
" <td>5.0</td>\n",
" <td>1</td>\n",
" <td>2015</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>432</th>\n",
" <td>The Park Bench (2015)</td>\n",
" <td>5.0</td>\n",
" <td>5.0</td>\n",
" <td>1</td>\n",
" <td>2015</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>433</th>\n",
" <td>The Wanted 18 (2015)</td>\n",
" <td>5.0</td>\n",
" <td>5.0</td>\n",
" <td>1</td>\n",
" <td>2015</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>434</th>\n",
" <td>Z For Zachariah (2015)</td>\n",
" <td>5.0</td>\n",
" <td>5.0</td>\n",
" <td>1</td>\n",
" <td>2015</td>\n",
" <td>0.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>435 rows × 6 columns</p>\n",
"</div>"
],
"text/plain": [
" FILM STARS RATING VOTES YEAR STARS_DIFF\n",
"0 Fifty Shades of Grey (2015) 4.0 3.9 34846 2015 0.1\n",
"1 Jurassic World (2015) 4.5 4.5 34390 2015 0.0\n",
"2 American Sniper (2015) 5.0 4.8 34085 2015 0.2\n",
"3 Furious 7 (2015) 5.0 4.8 33538 2015 0.2\n",
"4 Inside Out (2015) 4.5 4.5 15749 2015 0.0\n",
".. ... ... ... ... ... ...\n",
"430 That Sugar Film (2015) 5.0 5.0 1 2015 0.0\n",
"431 The Intern (2015) 5.0 5.0 1 2015 0.0\n",
"432 The Park Bench (2015) 5.0 5.0 1 2015 0.0\n",
"433 The Wanted 18 (2015) 5.0 5.0 1 2015 0.0\n",
"434 Z For Zachariah (2015) 5.0 5.0 1 2015 0.0\n",
"\n",
"[435 rows x 6 columns]"
]
},
"execution_count": 199,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Create a count plot to display the number of times a certain difference occurs:**"
]
},
{
"cell_type": "code",
"execution_count": 200,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 201,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:xlabel='STARS_DIFF', ylabel='count'>"
]
},
"execution_count": 201,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABeMAAAIiCAYAAABL8tM2AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAAA1c0lEQVR4nO3deZh1V1kn7N9DYhIyQBIJg0CCRAgSDMiMtIQpoiCCDA6ozaA2DmCQwZZuUGxpW9MY4RNpEIHQDnRDZIrQASNGItLSEBLshDGYkBiGhBDIHIbn++Pswuqi6h3PqlPDfV/XuVadvdde6znw7lTV713v2tXdAQAAAAAAxrnJogsAAAAAAICtThgPAAAAAACDCeMBAAAAAGAwYTwAAAAAAAwmjAcAAAAAgMGE8QAAAAAAMJgwHgAAAAAABhPGAwAAAADAYMJ4AAAAAAAYTBgPAAAAAACDCeMBAAAAAGAwYTwAAAAAAAy276ILIKmqzyU5MMnFi64FAAAAAIA13T7Jtd196929sLp7QD3sjqr6yv7773/I0UcfvehSAAAAAABYwwUXXJAbbrjhqu6+2e5ea2X8xnDx0Ucffdfzzjtv0XUAAAAAALCGY489Nueff/4e7XBiz3gAAAAAABhMGA8AAAAAAIMJ4wEAAAAAYDBhPAAAAAAADCaMBwAAAACAwYTxAAAAAAAwmDAeAAAAAAAGE8YDAAAAAMBgwngAAAAAABhMGA8AAAAAAIMJ4wEAAAAAYDBhPAAAAAAADCaMBwAAAACAwYTxAAAAAAAwmDAeAAAAAAAGE8YDAAAAAMBgwngAAAAAABhMGA8AAAAAAIMJ4wEAAAAAYDBhPAAAAAAADLbvogtgjDve+iGLLoFt6tOf+9tFlwAAAAAAG46V8QAAAAAAMJgwHgAAAAAABhPGAwAAAADAYMJ4AAAAAAAY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K6vqrKp6alXVKv33qapfrap/qqrrquqy6frvXkT9AAAAAABsPttqZXxVPT7J/0yyT5Kzk5yV5Igk35/k3yR5eJKfWtb/JknelORHk1yZ5B1JbpHkCUkeVVUP6e4PrONHAAAAAABgE9o2K+Orat8kr8gsiP+p7r5Xd/94dz80yXFJrkjypKp6yLLLnpZZEP/JJHfp7id094OTPDHJgUn+fBoXAAAAAADWtG3C+CR3SXLLJB/v7r9YfqK7P5rkz6a391l26tlT+2vd/fll/f8yyduTfFeSxwyrGAAAAACALWE7hfE37GK/LyZJVX1nku9Ocl1m29OsdOrUPnrvSwMAAAAAYCvbTmH8p5NckOSYqnrS8hPTw1h/OsmXkrxlOnz3qf2/3f3VVcY7e2qPG1ArAAAAAABbyLYJ47v760menNmDWP+8qj5UVf+jqt6T5CNJLknysO6+YrrkyKm9ZI0hl44fNahkAAAAAAC2iG318NHufl9VHZ/Z6vd7Tq8kuTHJX2e2en7JwVN77RrDXTO1h+zq/FV13hqnjt7VMQAAAAAA2Hy2zcr4JKmqn0zygSQXJ7lfZoH7nZOckuQ5Sd5TVfsvrEAAAAAAALakbbMyvqrulOT1Sb6Q5Ie7++rp1CeTPL2qviPJDyd5WpL/lmTp/IFrDHnQ1F61qzV097Fr1HZekrvu6jgAAAAAAGwu22ll/E8k+bYkpy8L4pd749Q+aGo/M7W3W2O8peMXzac8AAAAAAC2qu0Uxi+F519e4/zS8cOm9typvVtVfdsq/Zf2m//IHGoDAAAAAGAL205h/Oem9t5rnL/P1F6YJN39z0k+muSmSR61Sv8nTO1pc6oPAAAAAIAtajuF8W+b2gdV1S8uP1FV90/yq9PbU5edOnlqT6qqWy7r/7gkP5LkU8vGBQAAAACAVW2bML67z07ykuntK6rq/1bVG6vq75O8L7MHsv5xd5+x7LLXJnlLkjsl+VhVvamq/jazwP66JD/
"text/plain": [
"<Figure size 1800x600 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: We can see from the plot that one movie was displaying over a 1 star difference than its true rating! What movie had this close to 1 star differential?**"
]
},
{
"cell_type": "code",
"execution_count": 202,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 203,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>VOTES</th>\n",
" <th>YEAR</th>\n",
" <th>STARS_DIFF</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>381</th>\n",
" <td>Turbo Kid (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.0</td>\n",
" <td>2</td>\n",
" <td>2015</td>\n",
" <td>1.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM STARS RATING VOTES YEAR STARS_DIFF\n",
"381 Turbo Kid (2015) 5.0 4.0 2 2015 1.0"
]
},
"execution_count": 203,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Part Three: Comparison of Fandango Ratings to Other Sites\n",
"\n",
"Let's now compare the scores from Fandango to other movies sites and see how they compare.\n",
"\n",
"**TASK: Read in the \"all_sites_scores.csv\" file by running the cell below**"
]
},
{
"cell_type": "code",
"execution_count": 204,
"metadata": {},
"outputs": [],
"source": [
"all_sites = pd.read_csv(\"all_sites_scores.csv\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Explore the DataFrame columns, info, description.**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 205,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>RottenTomatoes</th>\n",
" <th>RottenTomatoes_User</th>\n",
" <th>Metacritic</th>\n",
" <th>Metacritic_User</th>\n",
" <th>IMDB</th>\n",
" <th>Metacritic_user_vote_count</th>\n",
" <th>IMDB_user_vote_count</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Avengers: Age of Ultron (2015)</td>\n",
" <td>74</td>\n",
" <td>86</td>\n",
" <td>66</td>\n",
" <td>7.1</td>\n",
" <td>7.8</td>\n",
" <td>1330</td>\n",
" <td>271107</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Cinderella (2015)</td>\n",
" <td>85</td>\n",
" <td>80</td>\n",
" <td>67</td>\n",
" <td>7.5</td>\n",
" <td>7.1</td>\n",
" <td>249</td>\n",
" <td>65709</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Ant-Man (2015)</td>\n",
" <td>80</td>\n",
" <td>90</td>\n",
" <td>64</td>\n",
" <td>8.1</td>\n",
" <td>7.8</td>\n",
" <td>627</td>\n",
" <td>103660</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Do You Believe? (2015)</td>\n",
" <td>18</td>\n",
" <td>84</td>\n",
" <td>22</td>\n",
" <td>4.7</td>\n",
" <td>5.4</td>\n",
" <td>31</td>\n",
" <td>3136</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Hot Tub Time Machine 2 (2015)</td>\n",
" <td>14</td>\n",
" <td>28</td>\n",
" <td>29</td>\n",
" <td>3.4</td>\n",
" <td>5.1</td>\n",
" <td>88</td>\n",
" <td>19560</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM RottenTomatoes RottenTomatoes_User \\\n",
"0 Avengers: Age of Ultron (2015) 74 86 \n",
"1 Cinderella (2015) 85 80 \n",
"2 Ant-Man (2015) 80 90 \n",
"3 Do You Believe? (2015) 18 84 \n",
"4 Hot Tub Time Machine 2 (2015) 14 28 \n",
"\n",
" Metacritic Metacritic_User IMDB Metacritic_user_vote_count \\\n",
"0 66 7.1 7.8 1330 \n",
"1 67 7.5 7.1 249 \n",
"2 64 8.1 7.8 627 \n",
"3 22 4.7 5.4 31 \n",
"4 29 3.4 5.1 88 \n",
"\n",
" IMDB_user_vote_count \n",
"0 271107 \n",
"1 65709 \n",
"2 103660 \n",
"3 3136 \n",
"4 19560 "
]
},
"execution_count": 205,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 206,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 146 entries, 0 to 145\n",
"Data columns (total 8 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 FILM 146 non-null object \n",
" 1 RottenTomatoes 146 non-null int64 \n",
" 2 RottenTomatoes_User 146 non-null int64 \n",
" 3 Metacritic 146 non-null int64 \n",
" 4 Metacritic_User 146 non-null float64\n",
" 5 IMDB 146 non-null float64\n",
" 6 Metacritic_user_vote_count 146 non-null int64 \n",
" 7 IMDB_user_vote_count 146 non-null int64 \n",
"dtypes: float64(2), int64(5), object(1)\n",
"memory usage: 9.2+ KB\n"
]
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 207,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>RottenTomatoes</th>\n",
" <th>RottenTomatoes_User</th>\n",
" <th>Metacritic</th>\n",
" <th>Metacritic_User</th>\n",
" <th>IMDB</th>\n",
" <th>Metacritic_user_vote_count</th>\n",
" <th>IMDB_user_vote_count</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>count</th>\n",
" <td>146.000000</td>\n",
" <td>146.000000</td>\n",
" <td>146.000000</td>\n",
" <td>146.000000</td>\n",
" <td>146.000000</td>\n",
" <td>146.000000</td>\n",
" <td>146.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>mean</th>\n",
" <td>60.849315</td>\n",
" <td>63.876712</td>\n",
" <td>58.808219</td>\n",
" <td>6.519178</td>\n",
" <td>6.736986</td>\n",
" <td>185.705479</td>\n",
" <td>42846.205479</td>\n",
" </tr>\n",
" <tr>\n",
" <th>std</th>\n",
" <td>30.168799</td>\n",
" <td>20.024430</td>\n",
" <td>19.517389</td>\n",
" <td>1.510712</td>\n",
" <td>0.958736</td>\n",
" <td>316.606515</td>\n",
" <td>67406.509171</td>\n",
" </tr>\n",
" <tr>\n",
" <th>min</th>\n",
" <td>5.000000</td>\n",
" <td>20.000000</td>\n",
" <td>13.000000</td>\n",
" <td>2.400000</td>\n",
" <td>4.000000</td>\n",
" <td>4.000000</td>\n",
" <td>243.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25%</th>\n",
" <td>31.250000</td>\n",
" <td>50.000000</td>\n",
" <td>43.500000</td>\n",
" <td>5.700000</td>\n",
" <td>6.300000</td>\n",
" <td>33.250000</td>\n",
" <td>5627.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50%</th>\n",
" <td>63.500000</td>\n",
" <td>66.500000</td>\n",
" <td>59.000000</td>\n",
" <td>6.850000</td>\n",
" <td>6.900000</td>\n",
" <td>72.500000</td>\n",
" <td>19103.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>75%</th>\n",
" <td>89.000000</td>\n",
" <td>81.000000</td>\n",
" <td>75.000000</td>\n",
" <td>7.500000</td>\n",
" <td>7.400000</td>\n",
" <td>168.500000</td>\n",
" <td>45185.750000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>max</th>\n",
" <td>100.000000</td>\n",
" <td>94.000000</td>\n",
" <td>94.000000</td>\n",
" <td>9.600000</td>\n",
" <td>8.600000</td>\n",
" <td>2375.000000</td>\n",
" <td>334164.000000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" RottenTomatoes RottenTomatoes_User Metacritic Metacritic_User \\\n",
"count 146.000000 146.000000 146.000000 146.000000 \n",
"mean 60.849315 63.876712 58.808219 6.519178 \n",
"std 30.168799 20.024430 19.517389 1.510712 \n",
"min 5.000000 20.000000 13.000000 2.400000 \n",
"25% 31.250000 50.000000 43.500000 5.700000 \n",
"50% 63.500000 66.500000 59.000000 6.850000 \n",
"75% 89.000000 81.000000 75.000000 7.500000 \n",
"max 100.000000 94.000000 94.000000 9.600000 \n",
"\n",
" IMDB Metacritic_user_vote_count IMDB_user_vote_count \n",
"count 146.000000 146.000000 146.000000 \n",
"mean 6.736986 185.705479 42846.205479 \n",
"std 0.958736 316.606515 67406.509171 \n",
"min 4.000000 4.000000 243.000000 \n",
"25% 6.300000 33.250000 5627.000000 \n",
"50% 6.900000 72.500000 19103.000000 \n",
"75% 7.400000 168.500000 45185.750000 \n",
"max 8.600000 2375.000000 334164.000000 "
]
},
"execution_count": 207,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Rotten Tomatoes\n",
"\n",
"Let's first take a look at Rotten Tomatoes. RT has two sets of reviews, their critics reviews (ratings published by official critics) and user reviews. \n",
"\n",
"**TASK: Create a scatterplot exploring the relationship between RT Critic reviews and RT User reviews.**"
]
},
{
"cell_type": "code",
"execution_count": 208,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 209,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(0.0, 100.0)"
]
},
"execution_count": 209,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABRAAAAIpCAYAAADaThRvAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAACE3UlEQVR4nOzdfZxcd1nw/8+VbDa722ZDn5IQoG0a27LZioSnBCoNkBbvFlERemugyoNKq2J4xh9Vb1G5iyIC3lUMoDx4V6KICiq5lbbYUB5KUQxIkhZIaSu0aUtpd9vubiez+/39MTPtZrOzOzM7Z+bMzOf9es3r7J7znXO+cx5mzlxzznVFSglJkiRJkiRJms+ydndAkiRJkiRJUn4ZQJQkSZIkSZJUlQFESZIkSZIkSVUZQJQkSZIkSZJUlQFESZIkSZIkSVUZQJQkSZIkSZJUlQFESZIkSZIkSVUZQJQkSZIkSZJUlQFESZIkSZIkSVUZQJQkSZIkSZJUlQFESZIkSZIkSVUZQJQkSZIkSZJUlQFESZIkSZIkSVUZQJQkSZIkSZJUVUcHECPiqRHx/0XE30fEdyMiRUSq4XmviIgbI+LBiPhBROyJiGct8pxzy+1+UH7ejRHx8817NZIkSZIkSVL+REqLxttyKyI+Cfzk3PEppVjgOe8FXgtMAp8BBoDtQAAvSSl9cp7nvBj4G0oB188B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SJHWoWgs6jE0W6prv5JFiRxbR6HR5WOf17ivjU0dYt3ogo97Up56+X3XDbXz+159bU5GTLWecyG33TtTVlzytl2bwSJckSZIkqQMtVCxi/x3j7Ny975GCDo8Z6q95vqsHV3DKqoGa520QsTn
"text/plain": [
"<Figure size 1500x600 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's quantify this difference by comparing the critics ratings and the RT User ratings. We will calculate this with RottenTomatoes-RottenTomatoes_User. Note: Rotten_Diff here is Critics - User Score. So values closer to 0 means aggrement between Critics and Users. Larger positive values means critics rated much higher than users. Larger negative values means users rated much higher than critics.\n",
"\n",
"**TASK: Create a new column based off the difference between critics ratings and users ratings for Rotten Tomatoes. Calculate this with RottenTomatoes-RottenTomatoes_User**"
]
},
{
"cell_type": "code",
"execution_count": 210,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 211,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's now compare the overall mean difference. Since we're dealing with differences that could be negative or positive, first take the absolute value of all the differences, then take the mean. This would report back on average to absolute difference between the critics rating versus the user rating."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Calculate the Mean Absolute Difference between RT scores and RT User scores as described above.**"
]
},
{
"cell_type": "code",
"execution_count": 212,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 213,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"15.095890410958905"
]
},
"execution_count": 213,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Plot the distribution of the differences between RT Critics Score and RT User Score. There should be negative values in this distribution plot. Feel free to use KDE or Histograms to display this distribution.**"
]
},
{
"cell_type": "code",
"execution_count": 214,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 215,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABq4AAAMGCAYAAACDHnWzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAB7CAAAewgFu0HU+AADj0klEQVR4nOzdd5hdVdmw8fuZmfRKGukECIHQSwi9KkWxoIIFGyqCKNh7eRFe26tiA7t8YgFEUEBUxEbvoZeEmpDee53MzPr+2DvkTO9zzmTu33Xt6+yz19prPTPnzJ6Z/Zy1VqSUkCRJkiRJkiRJkoqtrNgBSJIkSZIkSZIkSWDiSpIkSZIkSZIkSSXCxJUkSZIkSZIkSZJKgokrSZIkSZIkSZIklQQTV5IkSZIkSZIkSSoJJq4kSZIkSZIkSZJUEkxcSZIkSZIkSZIkqSSYuJIkSZIkSZIkSVJJMHElSZIkSZIkSZKkkmDiSpIkSZIkSZIkSSXBxJUkSZIkSZIkSZJKgokrSZIkSZIkSZIklQQTV5IkSZIkSZIkSSoJJq4kSZIkSZIkSZJUEkxcSZIkSZIkSZIkqSSYuJIkSZIkSZIkSVJJMHElSZIkSZIkSZKkkmDiSpIkSZIkSZIkSSXBxJUkSZIkSZIkSZJKgokrSZIk7dAiIm3bOrjd2wvaPr4j25ZKXUQcX/D+v73Y8UiSJEnacZi4kiRJKqI6yY+GtnURMTci/hERX4yIcQ20cXwzbbRlO7sDv8ZREXF2RFwVEU9GxOKIqIyINRExOyL+FhEXRcR+HdWnOk5E9ImId+Sv38yIWBURVRGxPiLmRcTdEfHziDgnInYrdrxSdxARVzZzDd4QEQsj4r8R8bWImNJAG5M64dr/1TZ8LXXjmNTK829vT/89RUQMiohzI+L6iHgh/x1alf+dMCcibouIH0XEuyJiTLHjlSRJao+KYgcgSZKkJg3MtwnAKcBXI+LrwCUppQ4dQdTRImIY8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Owz4bER8NaX0f62IcQjZ9/NNLajbaa+rJEnqeiauJEmSupfCTwovKVoUDTuxYP/ulNLcTuzrTLJpCQEWAvcAa8i+P8Na0c6P88c3sf17eyOwoIG6M1sdJdknyIG/AIMKDs8FHgRWAgOAPYEDgF40fEP6O9ROWi3Iz19GlgAYTnZTfc+2xNiAF4H98/0LI+I3KaWNHdFwRPwIuLDgUDXwEPA8sBkYSZbomZSXN3iDPiI+TfZ92WYLcAfZ93Yn4ASy90I58HFgYkSc0cKk0ffZnrR6Engc2Eq2htcrN5PzBNC1ZMmMbQpfm4FkN2x3J/vf64v519eh69NFxHnAtpvBT5CNzqnO+9424uwUtifjfpLHUEP2vZ9J9j46hu2JyreTfd3f6sBQL2L7GmiPkX1vt5K93gfnx3cFboyIg1NKVR3Yd6MiYhpwPdv/P94E3A/MIXtfDSZ7Dfej4Rv8XaHw2l8NrChSHF0uIgYB/yZLokD2vn2U7H27nuw1GUd2DR3RTFsDgFuBowoOvwg8TLYm47C8bCxZQvWyiBicUvpGC0I9kiwx24vs9bkTWE6WuDmoBefXtRJYDQzNn38mIm5t6XSBTcmvXddROyFUCdxH9r7fSvZhiEPIPkhQxvYPptRt63LgIwWH1gO3AYvzNk4guxb2Bb4VEaNTSp9oSZjA74HXka3vOQN4Jj++LwVrfnby6ypJkorAxJUkSVI3kY+6KVzv4v5ixVJXRPQCDi849EAnd/kNsptsFwC/KkxG5J+6bpGU0gX5Ofuy/cbwD1NKt3dEkPnUSNexPWk1G/hwQyOIImIn4K3A5DrHh5N9nZDdsP4A8NuGEjARMQY4A2hvkulGtieupgIPRMS3gL+klNa1tdF8pFVh0uqPZCOh5jVQd1/ggzTwtUTEkdROqNwCvC+ltKSgTh/gf8lGQgG8GfgE2Qi
"text/plain": [
"<Figure size 2000x800 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Now create a distribution showing the *absolute value* difference between Critics and Users on Rotten Tomatoes.**"
]
},
{
"cell_type": "code",
"execution_count": 216,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 217,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABq4AAAMGCAYAAACDHnWzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAB7CAAAewgFu0HU+AADs40lEQVR4nOzdeXwdVf3/8fcna9OkSZvue0tLacsOLftSQNlVVBQElaqIqKCI+/YF+apflZ+KooJ7XVhF2XeQUnZaoGxtge5t2rRJ0zTN0qzn98dMyNybuyW5uXPTvJ6Pxzwyd+bMmc+9d+7cm/nMOceccwIAAAAAAAAAAADClhN2AAAAAAAAAAAAAIBE4goAAAAAAAAAAABZgsQVAAAAAAAAAAAAsgKJKwAAAAAAAAAAAGQFElcAAAAAAAAAAADICiSuAAAAAAAAAAAAkBVIXAEAAAAAAAAAACArkLgCAAAAAAAAAABAViBxBQAAAAAAAAAAgKxA4goAAAAAAAAAAABZgcQVAAAAAAAAAAAAsgKJKwAAAAAAAAAAAGQFElcAAAAAAAAAAADICiSuAAAAAAAAAAAAkBVIXAEAAAAAAAAAACArkLgCAAAAAAAAAABAViBxBQAAAAAAAAAAgKxA4goAAAAAAAAAAABZgcQVAAAAAAAAAAAAsgKJKwDAoGNm08zM+dP6sOPJdoHXyqVQdqiZXWlmS8ys2szaAttfHaP8ZDO71syWm9kuM+sIlF/QD08HA4CZLeY4APYOPfkO6WG9nCeANDKzBYHP1OKw4wEAAIMbiSsAwIBjZv8MXggzs2+GHVMYzGxR1OsQnFrMrMrMVpvZ82b2ezO7xMz268d4yiW9KOnnko6XNFJSboLyR0p6TdLXJB0sqVSS9Vd8ABAtKvkRa9ptZhvN7CEz+46ZTYxRx4IkdfRmWpjG5zjGzBaa2U1m9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m9YGbXmNmEFOpYHOO1Kvc/y0vNrNq88/FaM/uzmR3Qkxj7wfLAfNLnl0n+6/2JwKJfOeee62k9zrkqP0kXXX+vzpvB4zlGnZ3LTwwsfiLOZ2lh1Lbdjp1kzOwMM/u9mb1hZjus6/v5ZX/5+y1BC2Tzvn9+45ffaWZt/vG51cyeN7MbzOyjZlYcr44UTQzMb+hjXTGZWal53wH3+u9tfeA8+LiZXWVm+6dQzyj//Pak/zo0+5/bV8zsWjObm0Id755XzWx9YPlxZvYn8871u/z118WpY7KZfd+8321b/Dhq/Dj+n3ndKaaVmU0177vxFv+Y2uUfUzvM7HX/eDgqxboWRR/rZjbUzL5gZk/759hmM9vk7+/YHsa6r5ld57+WDf5rs9y8c/WkXjz9/rA86nFWnWMzxcxO9r/vXvfPT23m/e7a7B/f15nZ2ZZCTxNmNtLMvmpmj/rHzh6/zhVm9lszm5dCHVcHjs2r/WVFZvYZ836fbjTv+9+Z2SG9eMqZON8NMbNPm/cbaI2Z1fkxb/df05+Y2ZEp1FNiZl8y77fiZv/13Ol//n+TSh1+Pd2+F83sYDP7lV9Xjb/+rjjb9/l9BYABwTnHxMTExMSU9ZO87oucPzVJKvWXzw8sb5E0OoW6pgW2WS+v9c/vA8tiTSskzUpS7wck1SSpp3PanIbXZFGgvkW92P7KqJgOjVPu3TIJXsdk02J5fdGnWv7qGHGMkHRHCtvulHRukue+PlB+mrwuv5pi1LU8xrYfkde9YbI47pVUliCG4OuxSFKZvIGpE9X5oKSiFN7bQnl3LremEGeLpGEJ6krL8+3hsbk4UO8CSe+XVJtg342SLkmx7snyEq3Jnk+FpOOTnD9SmRb42x0VWPZ8gvh+ELX9sgRlvx8o978Jyi2QtDqFWJ+TNDHF4+tGSW1J6muUdFkP3+tjJW1OUGebpM+m4ziLsf9u550Y5X8UKN/Sg/0sCmy3KF3xJzge2iVNSXP96wP1T1O
"text/plain": [
"<Figure size 2000x800 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Let's find out which movies are causing the largest differences. First, show the top 5 movies with the largest *negative* difference between Users and RT critics. Since we calculated the difference as Critics Rating - Users Rating, then large negative values imply the users rated the movie much higher on average than the critics did.**"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: What are the top 5 movies users rated higher than critics on average:**"
]
},
{
"cell_type": "code",
"execution_count": 218,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 219,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Users Love but Critics Hate\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>Rotten_Diff</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Do You Believe? (2015)</td>\n",
" <td>-66</td>\n",
" </tr>\n",
" <tr>\n",
" <th>85</th>\n",
" <td>Little Boy (2015)</td>\n",
" <td>-61</td>\n",
" </tr>\n",
" <tr>\n",
" <th>105</th>\n",
" <td>Hitman: Agent 47 (2015)</td>\n",
" <td>-42</td>\n",
" </tr>\n",
" <tr>\n",
" <th>134</th>\n",
" <td>The Longest Ride (2015)</td>\n",
" <td>-42</td>\n",
" </tr>\n",
" <tr>\n",
" <th>125</th>\n",
" <td>The Wedding Ringer (2015)</td>\n",
" <td>-39</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM Rotten_Diff\n",
"3 Do You Believe? (2015) -66\n",
"85 Little Boy (2015) -61\n",
"105 Hitman: Agent 47 (2015) -42\n",
"134 The Longest Ride (2015) -42\n",
"125 The Wedding Ringer (2015) -39"
]
},
"execution_count": 219,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Now show the top 5 movies critics scores higher than users on average.**"
]
},
{
"cell_type": "code",
"execution_count": 220,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 221,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Critics love, but Users Hate\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>Rotten_Diff</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>69</th>\n",
" <td>Mr. Turner (2014)</td>\n",
" <td>42</td>\n",
" </tr>\n",
" <tr>\n",
" <th>112</th>\n",
" <td>It Follows (2015)</td>\n",
" <td>31</td>\n",
" </tr>\n",
" <tr>\n",
" <th>115</th>\n",
" <td>While We're Young (2015)</td>\n",
" <td>31</td>\n",
" </tr>\n",
" <tr>\n",
" <th>37</th>\n",
" <td>Welcome to Me (2015)</td>\n",
" <td>24</td>\n",
" </tr>\n",
" <tr>\n",
" <th>40</th>\n",
" <td>I'll See You In My Dreams (2015)</td>\n",
" <td>24</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM Rotten_Diff\n",
"69 Mr. Turner (2014) 42\n",
"112 It Follows (2015) 31\n",
"115 While We're Young (2015) 31\n",
"37 Welcome to Me (2015) 24\n",
"40 I'll See You In My Dreams (2015) 24"
]
},
"execution_count": 221,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## MetaCritic\n",
"\n",
"Now let's take a quick look at the ratings from MetaCritic. Metacritic also shows an average user rating versus their official displayed rating."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Display a scatterplot of the Metacritic Rating versus the Metacritic User rating.**"
]
},
{
"cell_type": "code",
"execution_count": 222,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 223,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(0.0, 10.0)"
]
},
"execution_count": 223,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABQIAAAIpCAYAAAD5FUW6AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAAByMklEQVR4nO39fZxcdX3//z9fu7OzF0l2SdDsEjWXCuxutIKaRCmkmKSaoLVetQXyk4tWoD9tBBWtsba2tdgLtbRYPgFbEI2k9cPHIkpqIVgiUkOsGK27S8AEEjQXKBc7JLOb2Zl9f/+YGdns5Tkzc2bOmfO43265TXbmPXNec97v91y85pzX25xzAgAAAAAAAFDfGmodAAAAAAAAAIDgkQgEAAAAAAAAYoBEIAAAAAAAABADJAIBAAAAAACAGCARCAAAAAAAAMQAiUAAAAAAAAAgBkgEAgAAAAAAADFAIhAAAAAAAACIARKBAAAAAAAAQAyQCAQAAAAAAABigEQgAAAAAAAAEAMkAgEAAAAAAIAYIBEIAAAAAAAAxACJQAAAAAAAACAGIp0INLPXmNkfm9nXzOxnZubMzHm436VmttvMjpnZM2a23czeUI2YAQAAAAAAgFow52bMm4W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Wu6BdN1x4FrVHUROMOAAAAACx1NGa9NW+vaUpoEioVwjvGCvR0ZZMaP3yLq3pnh+JRU4QD4w6AAAAALFULOjvRdAF/cNarxDhw1iJlrELnJzeOUddHS1qSyZIAqJmGHkAAFQRRb0BIDzGF/SfTtAF/UupVxg3vIfmMVYAlINTgwEAqBKKegN
"text/plain": [
"<Figure size 1500x600 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## IMDB\n",
"\n",
"Finally let's explore IMDB. Notice that both Metacritic and IMDB report back vote counts. Let's analyze the most popular movies.\n",
"\n",
"**TASK: Create a scatterplot for the relationship between vote counts on MetaCritic versus vote counts on IMDB.**"
]
},
{
"cell_type": "code",
"execution_count": 224,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 225,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:xlabel='Metacritic_user_vote_count', ylabel='IMDB_user_vote_count'>"
]
},
"execution_count": 225,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABSMAAAIpCAYAAABZii1UAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAACU6ElEQVR4nOzde5jcZX3//+d7dzLZXciEgyQhaI4IbBZRFEggSpREK6j1ALZfNCrgIbTa0C8eWin6tWKp9lepFbXBKgebmmrRalVsNdgERAKeAjWJgImAmBDOWcLuZjK79++PmQ2TzezubDKzh+zzcV17TeYz9/tz37ME2HntfYiUEpIkSZIkSZJUbw0jPQBJkiRJkiRJ44NhpCRJkiRJkqRhYRgpSZIkSZIkaVgYRkqSJEmSJEkaFoaRkiRJkiRJkoaFYaQkSZIkSZKkYWEYKUmSJEmS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mSJEmSJA0Lw0hJkiRJkiRJw8IwUpIkSZIkSdKwMIyUJEmSJEmSNCwMIyVJkiRJkiQNC8NISZIkSZIkScPCMFKSJEmSJEnSsDCMlCRJkiRJkjQsDCMlSZIkSZIkDQvDSEmSJEmSJEnDwjBSkiRJkiRJ0rAwjJQkSZIkSZI0LAwjJUmSJEmSJA2LzEgPQJIkSRpJhe4e8t09tHcW2NGZZ3JzllxzhmxjA5lGf3cvSZJUS4aRkiRJGrc68gVWb9rONWu3sGFr+57rbdNzLFs0hyWtU2nJ+iOzJElSrfirXkmSJI1LHfkCV960ieWr1u8VRAJs2NrO8lXrufKmX9ORL4zQCCVJkg4+hpGSJEkadwrdPazetJ2V6x4csN3KdQ9w86ZHKHT3DNPIJEmSDm5jOoy
"text/plain": [
"<Figure size 1500x600 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Notice there are two outliers here. The movie with the highest vote count on IMDB only has about 500 Metacritic ratings. What is this movie?**\n",
"\n",
"**TASK: What movie has the highest IMDB user vote count?**"
]
},
{
"cell_type": "code",
"execution_count": 226,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 227,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>RottenTomatoes</th>\n",
" <th>RottenTomatoes_User</th>\n",
" <th>Metacritic</th>\n",
" <th>Metacritic_User</th>\n",
" <th>IMDB</th>\n",
" <th>Metacritic_user_vote_count</th>\n",
" <th>IMDB_user_vote_count</th>\n",
" <th>Rotten_Diff</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>14</th>\n",
" <td>The Imitation Game (2014)</td>\n",
" <td>90</td>\n",
" <td>92</td>\n",
" <td>73</td>\n",
" <td>8.2</td>\n",
" <td>8.1</td>\n",
" <td>566</td>\n",
" <td>334164</td>\n",
" <td>-2</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM RottenTomatoes RottenTomatoes_User \\\n",
"14 The Imitation Game (2014) 90 92 \n",
"\n",
" Metacritic Metacritic_User IMDB Metacritic_user_vote_count \\\n",
"14 73 8.2 8.1 566 \n",
"\n",
" IMDB_user_vote_count Rotten_Diff \n",
"14 334164 -2 "
]
},
"execution_count": 227,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: What movie has the highest Metacritic User Vote count?**"
]
},
{
"cell_type": "code",
"execution_count": 228,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 229,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>RottenTomatoes</th>\n",
" <th>RottenTomatoes_User</th>\n",
" <th>Metacritic</th>\n",
" <th>Metacritic_User</th>\n",
" <th>IMDB</th>\n",
" <th>Metacritic_user_vote_count</th>\n",
" <th>IMDB_user_vote_count</th>\n",
" <th>Rotten_Diff</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>88</th>\n",
" <td>Mad Max: Fury Road (2015)</td>\n",
" <td>97</td>\n",
" <td>88</td>\n",
" <td>89</td>\n",
" <td>8.7</td>\n",
" <td>8.3</td>\n",
" <td>2375</td>\n",
" <td>292023</td>\n",
" <td>9</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM RottenTomatoes RottenTomatoes_User \\\n",
"88 Mad Max: Fury Road (2015) 97 88 \n",
"\n",
" Metacritic Metacritic_User IMDB Metacritic_user_vote_count \\\n",
"88 89 8.7 8.3 2375 \n",
"\n",
" IMDB_user_vote_count Rotten_Diff \n",
"88 292023 9 "
]
},
"execution_count": 229,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Fandago Scores vs. All Sites\n",
"\n",
"Finally let's begin to explore whether or not Fandango artificially displays higher ratings than warranted to boost ticket sales."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Combine the Fandango Table with the All Sites table. Not every movie in the Fandango table is in the All Sites table, since some Fandango movies have very little or no reviews. We only want to compare movies that are in both DataFrames, so do an *inner* merge to merge together both DataFrames based on the FILM columns.**"
]
},
{
"cell_type": "code",
"execution_count": 230,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 231,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 232,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"Int64Index: 145 entries, 0 to 144\n",
"Data columns (total 13 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 FILM 145 non-null object \n",
" 1 STARS 145 non-null float64\n",
" 2 RATING 145 non-null float64\n",
" 3 VOTES 145 non-null int64 \n",
" 4 YEAR 145 non-null object \n",
" 5 RottenTomatoes 145 non-null int64 \n",
" 6 RottenTomatoes_User 145 non-null int64 \n",
" 7 Metacritic 145 non-null int64 \n",
" 8 Metacritic_User 145 non-null float64\n",
" 9 IMDB 145 non-null float64\n",
" 10 Metacritic_user_vote_count 145 non-null int64 \n",
" 11 IMDB_user_vote_count 145 non-null int64 \n",
" 12 Rotten_Diff 145 non-null int64 \n",
"dtypes: float64(4), int64(7), object(2)\n",
"memory usage: 15.9+ KB\n"
]
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 233,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>VOTES</th>\n",
" <th>YEAR</th>\n",
" <th>RottenTomatoes</th>\n",
" <th>RottenTomatoes_User</th>\n",
" <th>Metacritic</th>\n",
" <th>Metacritic_User</th>\n",
" <th>IMDB</th>\n",
" <th>Metacritic_user_vote_count</th>\n",
" <th>IMDB_user_vote_count</th>\n",
" <th>Rotten_Diff</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Fifty Shades of Grey (2015)</td>\n",
" <td>4.0</td>\n",
" <td>3.9</td>\n",
" <td>34846</td>\n",
" <td>2015</td>\n",
" <td>25</td>\n",
" <td>42</td>\n",
" <td>46</td>\n",
" <td>3.2</td>\n",
" <td>4.2</td>\n",
" <td>778</td>\n",
" <td>179506</td>\n",
" <td>-17</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Jurassic World (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>34390</td>\n",
" <td>2015</td>\n",
" <td>71</td>\n",
" <td>81</td>\n",
" <td>59</td>\n",
" <td>7.0</td>\n",
" <td>7.3</td>\n",
" <td>1281</td>\n",
" <td>241807</td>\n",
" <td>-10</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>American Sniper (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>34085</td>\n",
" <td>2015</td>\n",
" <td>72</td>\n",
" <td>85</td>\n",
" <td>72</td>\n",
" <td>6.6</td>\n",
" <td>7.4</td>\n",
" <td>850</td>\n",
" <td>251856</td>\n",
" <td>-13</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Furious 7 (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>33538</td>\n",
" <td>2015</td>\n",
" <td>81</td>\n",
" <td>84</td>\n",
" <td>67</td>\n",
" <td>6.8</td>\n",
" <td>7.4</td>\n",
" <td>764</td>\n",
" <td>207211</td>\n",
" <td>-3</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Inside Out (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>15749</td>\n",
" <td>2015</td>\n",
" <td>98</td>\n",
" <td>90</td>\n",
" <td>94</td>\n",
" <td>8.9</td>\n",
" <td>8.6</td>\n",
" <td>807</td>\n",
" <td>96252</td>\n",
" <td>8</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM STARS RATING VOTES YEAR RottenTomatoes \\\n",
"0 Fifty Shades of Grey (2015) 4.0 3.9 34846 2015 25 \n",
"1 Jurassic World (2015) 4.5 4.5 34390 2015 71 \n",
"2 American Sniper (2015) 5.0 4.8 34085 2015 72 \n",
"3 Furious 7 (2015) 5.0 4.8 33538 2015 81 \n",
"4 Inside Out (2015) 4.5 4.5 15749 2015 98 \n",
"\n",
" RottenTomatoes_User Metacritic Metacritic_User IMDB \\\n",
"0 42 46 3.2 4.2 \n",
"1 81 59 7.0 7.3 \n",
"2 85 72 6.6 7.4 \n",
"3 84 67 6.8 7.4 \n",
"4 90 94 8.9 8.6 \n",
"\n",
" Metacritic_user_vote_count IMDB_user_vote_count Rotten_Diff \n",
"0 778 179506 -17 \n",
"1 1281 241807 -10 \n",
"2 850 251856 -13 \n",
"3 764 207211 -3 \n",
"4 807 96252 8 "
]
},
"execution_count": 233,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Normalize columns to Fandango STARS and RATINGS 0-5 \n",
"\n",
"Notice that RT,Metacritic, and IMDB don't use a score between 0-5 stars like Fandango does. In order to do a fair comparison, we need to *normalize* these values so they all fall between 0-5 stars and the relationship between reviews stays the same.\n",
"\n",
"**TASK: Create new normalized columns for all ratings so they match up within the 0-5 star range shown on Fandango. There are many ways to do this.**\n",
"\n",
"Hint link: https://stackoverflow.com/questions/26414913/normalize-columns-of-pandas-data-frame\n",
"\n",
"\n",
"Easier Hint:\n",
"\n",
"Keep in mind, a simple way to convert ratings:\n",
"* 100/20 = 5 \n",
"* 10/2 = 5"
]
},
{
"cell_type": "code",
"execution_count": 234,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 235,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 236,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 237,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 238,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>FILM</th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>VOTES</th>\n",
" <th>YEAR</th>\n",
" <th>RottenTomatoes</th>\n",
" <th>RottenTomatoes_User</th>\n",
" <th>Metacritic</th>\n",
" <th>Metacritic_User</th>\n",
" <th>IMDB</th>\n",
" <th>Metacritic_user_vote_count</th>\n",
" <th>IMDB_user_vote_count</th>\n",
" <th>Rotten_Diff</th>\n",
" <th>RT_Norm</th>\n",
" <th>RTU_Norm</th>\n",
" <th>Meta_Norm</th>\n",
" <th>Meta_U_Norm</th>\n",
" <th>IMDB_Norm</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Fifty Shades of Grey (2015)</td>\n",
" <td>4.0</td>\n",
" <td>3.9</td>\n",
" <td>34846</td>\n",
" <td>2015</td>\n",
" <td>25</td>\n",
" <td>42</td>\n",
" <td>46</td>\n",
" <td>3.2</td>\n",
" <td>4.2</td>\n",
" <td>778</td>\n",
" <td>179506</td>\n",
" <td>-17</td>\n",
" <td>1.2</td>\n",
" <td>2.1</td>\n",
" <td>2.3</td>\n",
" <td>1.6</td>\n",
" <td>2.1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Jurassic World (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>34390</td>\n",
" <td>2015</td>\n",
" <td>71</td>\n",
" <td>81</td>\n",
" <td>59</td>\n",
" <td>7.0</td>\n",
" <td>7.3</td>\n",
" <td>1281</td>\n",
" <td>241807</td>\n",
" <td>-10</td>\n",
" <td>3.6</td>\n",
" <td>4.0</td>\n",
" <td>3.0</td>\n",
" <td>3.5</td>\n",
" <td>3.6</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>American Sniper (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>34085</td>\n",
" <td>2015</td>\n",
" <td>72</td>\n",
" <td>85</td>\n",
" <td>72</td>\n",
" <td>6.6</td>\n",
" <td>7.4</td>\n",
" <td>850</td>\n",
" <td>251856</td>\n",
" <td>-13</td>\n",
" <td>3.6</td>\n",
" <td>4.2</td>\n",
" <td>3.6</td>\n",
" <td>3.3</td>\n",
" <td>3.7</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Furious 7 (2015)</td>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>33538</td>\n",
" <td>2015</td>\n",
" <td>81</td>\n",
" <td>84</td>\n",
" <td>67</td>\n",
" <td>6.8</td>\n",
" <td>7.4</td>\n",
" <td>764</td>\n",
" <td>207211</td>\n",
" <td>-3</td>\n",
" <td>4.0</td>\n",
" <td>4.2</td>\n",
" <td>3.4</td>\n",
" <td>3.4</td>\n",
" <td>3.7</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Inside Out (2015)</td>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>15749</td>\n",
" <td>2015</td>\n",
" <td>98</td>\n",
" <td>90</td>\n",
" <td>94</td>\n",
" <td>8.9</td>\n",
" <td>8.6</td>\n",
" <td>807</td>\n",
" <td>96252</td>\n",
" <td>8</td>\n",
" <td>4.9</td>\n",
" <td>4.5</td>\n",
" <td>4.7</td>\n",
" <td>4.4</td>\n",
" <td>4.3</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FILM STARS RATING VOTES YEAR RottenTomatoes \\\n",
"0 Fifty Shades of Grey (2015) 4.0 3.9 34846 2015 25 \n",
"1 Jurassic World (2015) 4.5 4.5 34390 2015 71 \n",
"2 American Sniper (2015) 5.0 4.8 34085 2015 72 \n",
"3 Furious 7 (2015) 5.0 4.8 33538 2015 81 \n",
"4 Inside Out (2015) 4.5 4.5 15749 2015 98 \n",
"\n",
" RottenTomatoes_User Metacritic Metacritic_User IMDB \\\n",
"0 42 46 3.2 4.2 \n",
"1 81 59 7.0 7.3 \n",
"2 85 72 6.6 7.4 \n",
"3 84 67 6.8 7.4 \n",
"4 90 94 8.9 8.6 \n",
"\n",
" Metacritic_user_vote_count IMDB_user_vote_count Rotten_Diff RT_Norm \\\n",
"0 778 179506 -17 1.2 \n",
"1 1281 241807 -10 3.6 \n",
"2 850 251856 -13 3.6 \n",
"3 764 207211 -3 4.0 \n",
"4 807 96252 8 4.9 \n",
"\n",
" RTU_Norm Meta_Norm Meta_U_Norm IMDB_Norm \n",
"0 2.1 2.3 1.6 2.1 \n",
"1 4.0 3.0 3.5 3.6 \n",
"2 4.2 3.6 3.3 3.7 \n",
"3 4.2 3.4 3.4 3.7 \n",
"4 4.5 4.7 4.4 4.3 "
]
},
"execution_count": 238,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Now create a norm_scores DataFrame that only contains the normalizes ratings. Include both STARS and RATING from the original Fandango table.**"
]
},
{
"cell_type": "code",
"execution_count": 239,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 240,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 241,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>RT_Norm</th>\n",
" <th>RTU_Norm</th>\n",
" <th>Meta_Norm</th>\n",
" <th>Meta_U_Norm</th>\n",
" <th>IMDB_Norm</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>4.0</td>\n",
" <td>3.9</td>\n",
" <td>1.2</td>\n",
" <td>2.1</td>\n",
" <td>2.3</td>\n",
" <td>1.6</td>\n",
" <td>2.1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>3.6</td>\n",
" <td>4.0</td>\n",
" <td>3.0</td>\n",
" <td>3.5</td>\n",
" <td>3.6</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>3.6</td>\n",
" <td>4.2</td>\n",
" <td>3.6</td>\n",
" <td>3.3</td>\n",
" <td>3.7</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>5.0</td>\n",
" <td>4.8</td>\n",
" <td>4.0</td>\n",
" <td>4.2</td>\n",
" <td>3.4</td>\n",
" <td>3.4</td>\n",
" <td>3.7</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>4.5</td>\n",
" <td>4.5</td>\n",
" <td>4.9</td>\n",
" <td>4.5</td>\n",
" <td>4.7</td>\n",
" <td>4.4</td>\n",
" <td>4.3</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" STARS RATING RT_Norm RTU_Norm Meta_Norm Meta_U_Norm IMDB_Norm\n",
"0 4.0 3.9 1.2 2.1 2.3 1.6 2.1\n",
"1 4.5 4.5 3.6 4.0 3.0 3.5 3.6\n",
"2 5.0 4.8 3.6 4.2 3.6 3.3 3.7\n",
"3 5.0 4.8 4.0 4.2 3.4 3.4 3.7\n",
"4 4.5 4.5 4.9 4.5 4.7 4.4 4.3"
]
},
"execution_count": 241,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Comparing Distribution of Scores Across Sites\n",
"\n",
"\n",
"Now the moment of truth! Does Fandango display abnormally high ratings? We already know it pushs displayed RATING higher than STARS, but are the ratings themselves higher than average?\n",
"\n",
"\n",
"**TASK: Create a plot comparing the distributions of normalized ratings across all sites. There are many ways to do this, but explore the Seaborn KDEplot docs for some simple ways to quickly show this. Don't worry if your plot format does not look exactly the same as ours, as long as the differences in distribution are clear.**\n",
"\n",
"Quick Note if you have issues moving the legend for a seaborn kdeplot: https://github.com/mwaskom/seaborn/issues/2280"
]
},
{
"cell_type": "code",
"execution_count": 242,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 243,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 244,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAB0cAAALoCAYAAAADXv2OAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAAEAAElEQVR4nOzdd3hUVf7H8fedyUx6SEiBhBY6JPSOdEEEC2CnKeBaUHRdV12x/FZ0i66rrG3VXRsISKTaQBCQLr1D6BBqAgk1vczc3x8BViQEAklukvm8nmeemHvOPeczERDne885hmmaiIiIiIiIiIiIiIiIiIhUdDarA4iIiIiIiIiIiIiIiIiIlAYVR0VERERERERERERERETEI6g4KiIiIiIiIiIiIiIiIiIeQcVREREREREREREREREREfEIKo6KiIiIiIiIiIiIiIiIiEdQcVREREREREREREREREREPIKKoyIiIiIiIiIiIiIiIiLiEVQcFRERERERERERERERERGPoOKoiIiIiIiIiIiIiIiIiHgEFUdFRERERERERERERERExCOoOCoiIiIiIiIiIiIiIiIiHkHFURERERERERERERERERHxCCqOioiIiIiIiIiIiIiIiIhH8LI6gFyeYRhJgB9wyOosIiIiIiIiIiIiIiIiImVADSDDNM2q13KzYZpmMeeR4mIYxllvb+/AunXrWh1FRERERERERERERERExHJ79+4lOzs71TTNoGu5XytHy7ZDdevWjdm2bZvVOUREREREREREREREREQsFxsbS3x8/DXvuqozR0VERERERERERERERETEI6g4KiIiIiIiIiIiIiIiIiIeQcVREREREREREREREREREfEIKo6KiIiIiIiIiIiIiIiIiEdQcVREREREREREREREREREPIKKoyIiIiIiIiIiIiIiIiLiEbysDiAlwzRNTNO0OoZIhWAYBoZhWB1DRERERERERERERESuk4qjFYjL5eLEiROkpqaSk5NjdRyRCsVut+Pn50dQUBCBgYEqloqIiIiIiIiIiIiIlEMqjlYQLpeLgwcPkpWVZXUUkQrJ5XKRmppKamoqwcHBVKlSBZtNO5OLiIiIiIiIiIiIiJQnKo5WECdOnCArKwu73U6VKlXw9/dX4UakmJimSXZ2NqmpqZw8eZLTp0/j4+NDSEiI1dFERERERERERERERKQIVBytIFJTUwGoUqUKlSpVsjiNSMXj5+eHn58fXl5eHD9+nFOnTqk4KiIiIiIiIiIiIiJSzmhpYQVgmuaFM0b9/f0tTiNSsQUFBQGQnZ2NaZoWpxERERERERERERERkaJQcbQC+HWBRlvpipQsu91+4Z9VHBURERERERERERERKV/KdSXNMAxfwzBeMwxjl2EYWYZhHDUM43PDMKoVcZxuhmG8YhjGLMMwkg3DMA3DSCikv8MwjN6GYXxgGMZWwzAyDMPINAxju2EYbxmGEX7db05EREREREREREREREREilW5PXPUMAwf4GegA5AIfAtEAyOA2wzD6GCa5r6rHO5doHkRpu8GzD33zwnAj4AD6Ag8AwwxDKO7aZo7izCmiIiIiIiIiIiIiIiIiJSg8rxy9GXyC6MrgAamad5nmmZ78ouT4cDnRRjrp3Pj3QzEXkV/NzAFaG+aZm3TNO8yTbMfUI/8omlV4IsizC8iIiIiIiIiIiIiIiIiJaxcrhw1DMMJPHHu21GmaaadbzNNc6xhGMOAboZhtDZNc92VxjNN80+/GrvqVfT/mfxVq7+9fsYwjAeBI0BHwzBqmaZ54MrvqGSZpomZmWl1jCIxfH0xDMPqGCIiIiIiIiIiIiIiIlKBlMviKNAJqATsNU1zQwHt04BmwO3AFYujxck0zaOGYSSTv3o1CrC+OJqZSWL9hlbHKJLI3Tsx/PyKZayFCxfywQcfsHLlSpKTk/H39yciIoJmzZrRrVs37r//fvr378/ixYuLNO7+/fuJjo6+8P0tt9zCjz/+SEBAAMeOHcPvMvkXLVpEjx49Lrpmt9upXLkyrVq14rHHHqN///6XnXf9+vX861//YsmSJSQlJeHt7U1ERASNGzemW7duDBkyhMjIyCK9FxEREREREREREREREU9QXouj588HXX+Z9vPXm5VClosYhhEMhJz7Nqm055eLvfbaa7zyyisANG7cmPbt2+NwONi5cyczZsxg2rRptGnThj59+lxU6ATYs2cPy5cvp0qVKvTp0+eSsQMCAi7887Fjx/jpp58ASEtL45tvvmHw4MGFZvv1uFlZWWzbto25c+cyd+5cXnnlFcaMGXPJPV988QUPP/wwLpeL6Ohobr75Zvz9/dm3bx9z587lhx9+oHr16gwcOLAoPyYRERERERERERERERGPUF6LozXPfT18mfbz12uVQpbfGkX+z3WLaZr7LZi/UJU//QTD29vqGAUys7M5+dDDxTbeunXrGDNmDA6HgylTpjBgwICL2pOSkpg4cSLBwcGMHj36kvvHjRvH8uXLadSoEePGjSt0rsmTJ+NyuYiMjCQxMZEJEyZcsTha0Ljvvvsuf/jDH/jrX//K8OHDLyrYHjlyhMcffxyXy8WHH37Io48+is32v2ODT506xZQpU6hWrVqh84qIiIiIiIiIiIiIiHiq8locPb9kL+My7ennvgaWQpYLDMNoCbx87tvni3Dftss01b3uUL+dy9sbw8enuIctk2bMmIFpmtx7772XFEYBqlatyrPPPlssc02YMAGAjz/+mCFDhjBv3jySkpKoWvWKR9he5KmnnuLjjz9mx44dLFiwgN/97ncX2mbPnk1WVhadOnXiscceu+TekJAQHn300et7IyIiIiIiIiIiIiIiIhWY7cpd5GoYhlEFmAH4AO+YpvmjxZE8XnJyMgDh4eElOs/27dtZv349UVFR3Hbbbdx55524XC4mT558TePFxsYCcPz48Yuul9b7ERERERERERERERERqajKa3E07dxXv8u0+5/7mloKWTAMIxCYDUQDU4FninK/aZqxBb2AvcWf1nPUqFEDgOnTp19SaCxO51eNDho0CJvNxtChQwGYOHHiNY2Xmpr/yzYiIuKi6+ffz4IFC9i5c+e1xhUREREREREREREREfFY5bU4evDc1+qXaT9//UBJBzEMwwf4DmgF/AQMNU3TXdLzypUNGTIEX19fDh06RL169Rg+fDiffvopGzZswOVyFcscpmkyadIkgAtF0Z49exIZGcn69euJj48v0ngnT55k9erV2O12evXqdVFbv379iIiIIDU1lebNm3Pvvffy4YcfsnLlSnJycorl/YiIiIiIiIiIiIiIiFRk5bU4uunc11aXaT9/fXNJhjAMwwv4GugO/ALcaZqmqlRlRJ06dfj++++pUaMGqampjB8/nocffphWrVoRFhbG448/TmJi4nXNsXjxYg4ePEhsbCwtWrQAwGazMWjQIOB/q0qvJCsri7Vr13LHHXdw+vRpXn/9dWrVqnVRn0qVKjF37lxiYmLIzs5m6tSpjBo1io4dOxISEsKQIUPYvXv3db0fERERERERERERERGRiqy8FkeXA2eAuoZhtCig/e5zX78vqQCGYRjAF0A/YCNwq2ma6SU1n1ybnj17smfPHmbMmMHIkSNp1aoVXl5enD59mo8++ogWLVpc1xa157fOvf/++y+6fv77SZMmYZpmgfcuXrwYwzAwDANfX1/atm3L0qVL+fLLL3nuuecKvKdFixZs2bKFuXPn8oc//IEOHTrg4+NDRkYGX331FS1btmTp0qXX/H5EREREREREREREREQqsnJZHD23OvODc9/+2zCM82eMYhjGH4FmwGLTNNf96voThmHsMAzj9WKK8Q4wFNgB9DZN83QxjSvFzOl0cscdd/DRRx+xbt06kpOT+eijjwgJCeH48eM88cQT1zRuVlYW06ZNwzAMBg8efFFbixYtiI2N5dChQyxevLjA+6tUqcKwYcMYNmwYAwYMoEqVKpimyRNPPMHmzZdf9Gyz2ejduzf/+te/WLFiBSdOnOCrr76ievXqpKen87vf/e6a3o+IiIiIiIiIiIi
"text/plain": [
"<Figure size 2250x900 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Clearly Fandango has an uneven distribution. We can also see that RT critics have the most uniform distribution. Let's directly compare these two.** \n",
"\n",
"**TASK: Create a KDE plot that compare the distribution of RT critic ratings against the STARS displayed by Fandango.**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 167,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAB0cAAALoCAYAAAADXv2OAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAADlPElEQVR4nOzdd5ieVYH///d5pre0Kek9IQ1C6KFJKKIIgrhYsCzo2sW17Oq67rqiX1ddd3+u7toLYmeVjiARkSZSTCc9pCeTnsxkMr2c3x/PMzFA2iQzc095v65rrpu52/k8GBKvfOacE2KMSJIkSZIkSZIkSVJfl0o6gCRJkiRJkiRJkiR1B8tRSZIkSZIkSZIkSf2C5agkSZIkSZIkSZKkfsFyVJIkSZIkSZIkSVK/YDkqSZIkSZIkSZIkqV+wHJUkSZIkSZIkSZLUL1iOSpIkSZIkSZIkSeoXLEclSZIkSZIkSZIk9QuWo5IkSZIkSZIkSZL6BctRSZIkSZIkSZIkSf2C5agkSZIkSZIkSZKkfsFyVJIkSZIkSZIkSVK/YDkqSZIkSZIkSZIkqV/ITjqAjiyEsB0oBDYnnUWSJEmSJEmSJEnqAUYDdTHGYSfycIgxdnIedZYQwv68vLySiRMnJh1FkiRJkiRJkiRJStzatWtpbGysiTEOOJHnnTnas22eOHHi9GXLliWdQ5IkSZIkSZIkSUrcjBkzWL58+Qmvuuqeo5IkSZIkSZIkSZL6BctRSZIkSZIkSZIkSf1Cry5HQwgFIYQvhBBWhxAaQgiVIYTbQggjT/K9k0MI9SGEGEL4w1Hu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fz4XX3wxV199Ndu2beMzn/kMl112GXV1dYd97pe//CVXXXUVtbW1XHXVVZxzzjmE8NftdNevX8+5557L0qVLueKKKxg3bhwPP/wwc+bMYfv27dxwww189atfZcaMGcyZM4fNmzdzyy238IMf/OCk/j1IkiRJkiRJkiR1N/ccVb/08MMPA/Da1742kfGvvfZazjrrLJ599lkeeughXve61x31/rvuuovvf//7jBgxgscff5zJkycDUF1dzTXXXMOf/vQn/u3f/o3/+q//esWzP/jBD7jjjjt4y1vecth3//SnP+XTn/40X/rSlwghEGPk3e9+N7fffjuXX345qVSKNWvWUF5eDsCjjz7KFVdcwb//+7/z3vd2/h6xkiRJkiRJkiRJXcWZo+o32traWLt2LR/84Ad58sknue66645YGHaH9lmjx7P36P/8z/8cvLe9GAUYOHAg3/rWtwgh8L3vfe+wy+teffXVR/2cEyZM4Atf+MLB2aQhBD7+8Y8DsHz5cr7+9a8fLEYBLr/8cs444ww2btzIhg0bjpldkiRJkiRJkiSpp7AcVZ8XQiCEQFZWFpMmTeK73/0u733ve7nnnnvIzk5u8vQ111zDOeecw7x583jggQeOeF9zczPPPvssAG9/+9tfcX3mzJnMnDmTAwcOsGjRoldcv/baa4+aY86cOeTk5Lzk3IQJEwDIyclhzpw5r3im/fq2bduO+m5JkiRJkiRJkqSexHJUfd5NN93ETTfdxFve8hamTp0KpJea/clPfpJwMo5r79E9e/bQ1NREWVkZRUVFh71n3LhxAGzduvUV18aMGXPUDCNHjnzFueLiYgCGDRtGVlbWEa83NjYe9d2SJEmSJEmSJEk9iXuOqs+7/fbbX/L9f/7nf/KpT32KD3/4w1x66aWMHTs2mWDAVVddxezZs3n22We55557GD58+Am9p31J3MPJz88/6rOp1JF/RuJo1yRJkiRJkiRJknobmw/1O5/85Ce58sorqaurOzhzM0ntGT7/+c8TY3zF9dLSUnJzc9m9eze1tbWHfUf73p+
"text/plain": [
"<Figure size 2250x900 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**OPTIONAL TASK: Create a histplot comparing all normalized scores.**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 168,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<AxesSubplot:ylabel='Count'>"
]
},
"execution_count": 168,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAABzMAAALoCAYAAAD8/NhsAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAACXpklEQVR4nOzdeZiWdb0/8PfNzsygkIDiSkYuUC6o5S7mvmuaKwruW2qWlqUd0TrpMfNoi5pm4gop7tkBFY+YZu5LP8hdNNeAUmEGUOD+/cHAERn2GeZheL2u67lunvu7fe7nNP3R+3y/d1GWZQAAAAAAAAAqTavmLgAAAAAAAACgIcJMAAAAAAAAoCIJMwEAAAAAAICKJMwEAAAAAAAAKpIwEwAAAAAAAKhIwkwAAAAAAACgIgkzAQAAAAAAgIokzAQAAAAAAAAqkjATAAAAAAAAqEjCTAAAAAAAAKAiCTMBAAAAAACAiiTMBAAAAAAAACqSMBMAAAAAAACoSG2au4CWpCiK95NUJflHc9cCAAAAAAAAFWCNJHVlWa6yOIOLsiwbuZ7lV1EUH7dv377Tl770peYuBQAAAAAAAJrda6+9lqlTp04sy3KFxRlvZ2bj+seXvvSl3qNHj27uOgAAAAAAAKDZ9enTJ2PGjFnsU029MxMAAAAAAACoSMJMAAAAAAAAoCIJMwEAAAAAAICKJMwEAAAAAAAAKpIwEwAAAAAAAKhIwkwAAAAAAACgIrVp7gIAAAAAAACaQlmWKcuyucuAFqMoihRFsVTXFGYCAAAAAAAtxvTp0zNhwoRMnDgxn3zySXOXAy1Ou3bt0qlTp6y00kpp3bp1k68nzAQAAAAAAFqE6dOn56233sqUKVOauxRosT755JNMmDAhtbW1WXPNNZs80BRmAgAAAAAALcKECRMyZcqUtG7dOiuvvHKqq6vTqlWr5i4LWowZM2aktrY2H3zwQaZMmZIJEyake/fuTbqmMBMAAAAAAGgRJk6cmCRZeeWVs+KKKzZzNdDytGrVavbf1rvvvpuJEyc2eZjp/x0BAAAAAABY5pVlOfsdmdXV1c1cDbRss/7GPvnkk5Rl2aRrCTMBAAAAAIBl3mcDFUfLQtP67N+YMBMAAAAAAABYLgkzAQAAAAAAgIokzAQAAAAAAAAqUpvmLgAAAAAAAKCplWWZurq65i5jkVRVVaUoiuYuA5qVMBMAAAAAAGjx6urqUlNT09xlLJJJkyalurq6Ueb63//93/z617/OX//614wbNy7V1dXp3r17Nthgg2y33XY5/PDDs88++2TUqFGLNO8bb7yRnj17zv6+++6753/+539SU1OTDz74IFVVVQ2Oe+ihh7L99tvPca9169b5whe+kL59++bEE0/MPvvsM891n3nmmfz3f/93Hn744bz//vtp3759unfvnvXXXz/bbbddDjvssPTo0WORnoXKJMwEAAAAAABowc4///yce+65SZL1118/X//619O2bdu89NJLuf322zNs2LBsuumm2XXXXecIJpPk1VdfzaOPPpqVV145u+6661xzfzYg/uCDD3LfffclmRnE3nnnnTn00EPnW9tn550yZUpGjx6dESNGZMSIETn33HMzaNCgucZce+21OfbYYzN9+vT07Nkzu+yyS6qrq/P6669nxIgR+eMf/5jVV189Bx988KL8TFQoYSYAAAAAALBc2efnf0yb9h2bu4wGTZs6OXeduWejzff0009n0KBBadu2bW655Zbsu+++c7S///77ufHGG9O5c+ecddZZc40fPHhwHn300ay33noZPHjwfNcaMmRIpk+fnh49euS9997LDTfcsMAws6F5L7vssnznO9/JT3/60wwcOHCOgPWdd97JSSedlOnTp+fyyy/P8ccfn1atWs1u//e//51bbrklq6222nzXZdkhzAQAAAAAAJYrbdp3rNgws7HdfvvtKcsyBx544FxBZpKsssoqOeOMMxplrRtuuCFJcuWVV+awww7L/fffn/fffz+rrLLKIs1z2mmn5corr8yLL76YkSNH5uijj57d9qc//SlTpkzJVlttlRNPPHGusV26dMnxxx+/ZA9CRWm14C4AAAAAAAAsi8aNG5ck6datW5Ou8/e//z3PPPNMVl111ey555755je/menTp2fIkCGLNV+fPn2SJP/85z/nuL+0nofKIcwEAAAAAABoodZYY40kyW233TZXMNiYZu3KPOSQQ9KqVav0798/SXLjjTcu1nwTJ05MknTv3n2O+7OeZ+TIkXnppZcWt1yWIcJMAAAAAACAFuqwww5Lx44d849//CO9evXKwIED87vf/S7PPvtspk+f3ihrlGWZm266KUlmh5g77LBDevTokWeeeSZjxoxZpPn+9a9/5Yknnkjr1q2z4447ztG29957p3v37pk4cWI23HDDHHjggbn88svz17/+NZ988kmjPA+VRZgJAAAAAADQQq299tq55557ssYaa2TixIm57rrrcuyxx6Zv377p2rVrTjrppLz33ntLtMaoUaPy1ltvpU+fPtloo42SJK1atcohhxyS5P92bS7IlClT8tRTT2W//fbLhx9+mAsuuCBrrbXWHH1WXHHFjBgxIr17987UqVNz66235uSTT84WW2yRLl265LDDDssrr7yyRM9DZRFmAgAAAAAAtGA77LBDXn311dx+++054YQT0rdv37Rp0yYffvhhrrjiimy00UZLdGTrrKNkDz/88Dnuz/p+0003pSzLBseOGjUqRVGkKIp07Ngxm222Wf785z/n+uuvz5lnntngmI022ih/+9vfMmLEiHznO9/J5ptvng4dOqSuri4333xzNt544/z5z39e7OehsggzAQAAAAAAWrh27dplv/32yxVXXJGnn34648aNyxVXXJEuXbrkn//8Z7797W8v1rxTpkzJsGHDUhRFDj300DnaNtpoo/Tp0yf/+Mc/MmrUqAbHr7zyyhkwYEAGDBiQfffdNyuvvHLKssy3v/3tvPDCC/Nct1WrVtl5553z3//933nssccyYcKE3HzzzVl99dVTW1ubo48+erGeh8rTprkLAAAAAAAAYOnq3LlzTjjhhKy66qrZZ5998r//+7+pq6tLVVXVIs1z991356OPPkq7du1mHyv7WePHj08y86jZfv36zdW+3nrrZfDgwbO/T506NYccckjuuOOOHH744Xn22WfTqtWC9+ZVVVXlkEMOSZ8+fbLhhhvmlVdeycsvv5x11llnkZ6HyiPMBAAAAAAAFkpZlqmrq2vuMlJVVZWiKJq7jBbhG9/4RpJk+vTp+fDDDxc5zJz1PsxPPvkkjz766Dz7DRs2LL/5zW/SoUOH+c7Xvn37XHvttXn00Ufzwgsv5MYbb8wRRxyx0PVssMEGWWmllTJhwoSMHz9emNkCCDMBAAAAAICFUldXl5qamuYuI5MmTUp1dXVzl7FMKMtyvsHvq6++mmTmMbRdu3ZdpLnHjx+fESNGpF27dnn//ffTpUuXBvttv/32eeihh3LXXXfloIMOWuC8K664Yn74wx/m9NNPzwUXXJD+/fvP3p25oOf517/+lX/9619JktVWW22RnofK5J2ZAAAAAAAALdSPf/zjnHnmmXnttdfmanvnnXdy/PHHJ0n23nvvtGvXbpHmHjp0aD799NPssssu8wwyk8w+fvbGG29c6LmPP/749OjRIy+++GJuu+222fevuOKKHHfccQ2+T/Nf//pXBg4cmLIss+mmm2attdZahKehUtmZCQAAAAAALLJ9fv7HtGnfcamtN23q5Nx15p6NNlelauzaJk2alMsuuywXX3xx1llnnfTu3TsdOnTI22+/nccffzyffvppevXqlUsvvXSR5551xGxD78r8rAMOOCDf/va3M3z48IwbNy7dunVb4NwdO3bMWWedldNOOy0XXHBBvvWtbyWZeZzt1VdfnauvvjprrbVWNthgg9TU1OT999/PE088kdra2nTr1i2///3vF/l5qEzCTAAAAAAAYJG1ad9xqYaZjamxQtFlwTnnnJNNN900I0aMyPPPP58///nP+eijj7LCCivka1/7WvbZZ5+
"text/plain": [
"<Figure size 2250x900 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"### How are the worst movies rated across all platforms?\n",
"\n",
"**TASK: Create a clustermap visualization of all normalized scores. Note the differences in ratings, highly rated movies should be clustered together versus poorly rated movies. Note: This clustermap does not need to have the FILM titles as the index, feel free to drop it for the clustermap.**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 169,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<seaborn.matrix.ClusterGrid at 0x1aa7cb2b548>"
]
},
"execution_count": 169,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAsgAAALJCAYAAACp99XTAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAABnyklEQVR4nO3deZikdXnv//c9KzMDIwwzIBGwJSISSUQdDXFJUJQYRcliVHJE0RxbcoJLNgX9KUQvcjCaRBNzcuwIKhFRo5IYt8DREDQJ4EBQUUQFWUWHAYZl9uX+/VE1WjS9PdVV/a1v9ft1XXPR9dTTT30su2fu/vb93N/ITCRJkiS1LCgdQJIkSRokFsiSJElSBwtkSZIkqYMFsiRJktTBAlmSJEnqYIEsSZIkdVhUOkC/RcRNwP3ALmBnZq4tm0iSJEmDbOgL5LZnZuaG0iEkSZI0+GyxkCRJkjrMhwI5gYsj4qqIGC0dRpIkSYOtUYvFrt2XDtS+1IsWPvM1QGfRO5aZY+NOe3pm3h4RBwCXRMR3MvOyuUspSZKkmkTmzGveXTu/PFAF8sJFz4om50fEWcADmfnu/iSSJElS7ZrdpLdzZ59idGma9BGxAliQmfe3Pz4eePscJJMkSVKlmhXIu3b1KUbfHAhcFBHQ+t/60cz8YtlIkiRJGmR1ryBPIzNvBB5fOockSZLqMdQFsiRJktRUowI5dlkgS5Ikabg1XEGurgdZkiRJaqThTXquIEuSJGm4uYIsSZIkdfAmPUmSJKlDw5v0XEGWJEnScHMFWZIkSepgD7IkSZLUYdi3mpYkSZIacQVZkiRJ6mAPsiRJktTBFgtJkiS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"text/plain": [
"<Figure size 720x720 with 4 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**TASK: Clearly Fandango is rating movies much higher than other sites, especially considering that it is then displaying a rounded up version of the rating. Let's examine the top 10 worst movies. Based off the Rotten Tomatoes Critic Ratings, what are the top 10 lowest rated movies? What are the normalized scores across all platforms for these movies? You may need to add the FILM column back in to your DataFrame of normalized scores to see the results.**"
]
},
{
"cell_type": "code",
"execution_count": 245,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 246,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 248,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>STARS</th>\n",
" <th>RATING</th>\n",
" <th>RT_Norm</th>\n",
" <th>RTU_Norm</th>\n",
" <th>Meta_Norm</th>\n",
" <th>Meta_U_Norm</th>\n",
" <th>IMDB_Norm</th>\n",
" <th>FILM</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>49</th>\n",
" <td>3.5</td>\n",
" <td>3.5</td>\n",
" <td>0.2</td>\n",
" <td>1.8</td>\n",
" <td>0.6</td>\n",
" <td>1.2</td>\n",
" <td>2.2</td>\n",
" <td>Paul Blart: Mall Cop 2 (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25</th>\n",
" <td>4.5</td>\n",
" <td>4.1</td>\n",
" <td>0.4</td>\n",
" <td>2.3</td>\n",
" <td>1.3</td>\n",
" <td>2.3</td>\n",
" <td>3.0</td>\n",
" <td>Taken 3 (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>28</th>\n",
" <td>3.0</td>\n",
" <td>2.7</td>\n",
" <td>0.4</td>\n",
" <td>1.0</td>\n",
" <td>1.4</td>\n",
" <td>1.2</td>\n",
" <td>2.0</td>\n",
" <td>Fantastic Four (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>54</th>\n",
" <td>4.0</td>\n",
" <td>3.7</td>\n",
" <td>0.4</td>\n",
" <td>1.8</td>\n",
" <td>1.6</td>\n",
" <td>1.8</td>\n",
" <td>2.4</td>\n",
" <td>Hot Pursuit (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>84</th>\n",
" <td>4.0</td>\n",
" <td>3.9</td>\n",
" <td>0.4</td>\n",
" <td>2.4</td>\n",
" <td>1.4</td>\n",
" <td>1.6</td>\n",
" <td>3.0</td>\n",
" <td>Hitman: Agent 47 (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>50</th>\n",
" <td>4.0</td>\n",
" <td>3.6</td>\n",
" <td>0.5</td>\n",
" <td>1.8</td>\n",
" <td>1.5</td>\n",
" <td>2.8</td>\n",
" <td>2.3</td>\n",
" <td>The Boy Next Door (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>77</th>\n",
" <td>3.5</td>\n",
" <td>3.2</td>\n",
" <td>0.6</td>\n",
" <td>1.8</td>\n",
" <td>1.5</td>\n",
" <td>2.0</td>\n",
" <td>2.8</td>\n",
" <td>Seventh Son (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>78</th>\n",
" <td>3.5</td>\n",
" <td>3.2</td>\n",
" <td>0.6</td>\n",
" <td>1.5</td>\n",
" <td>1.4</td>\n",
" <td>1.6</td>\n",
" <td>2.8</td>\n",
" <td>Mortdecai (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>83</th>\n",
" <td>3.5</td>\n",
" <td>3.3</td>\n",
" <td>0.6</td>\n",
" <td>1.7</td>\n",
" <td>1.6</td>\n",
" <td>2.5</td>\n",
" <td>2.8</td>\n",
" <td>Sinister 2 (2015)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>87</th>\n",
" <td>3.5</td>\n",
" <td>3.2</td>\n",
" <td>0.6</td>\n",
" <td>1.4</td>\n",
" <td>1.6</td>\n",
" <td>1.9</td>\n",
" <td>2.7</td>\n",
" <td>Unfinished Business (2015)</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" STARS RATING RT_Norm RTU_Norm Meta_Norm Meta_U_Norm IMDB_Norm \\\n",
"49 3.5 3.5 0.2 1.8 0.6 1.2 2.2 \n",
"25 4.5 4.1 0.4 2.3 1.3 2.3 3.0 \n",
"28 3.0 2.7 0.4 1.0 1.4 1.2 2.0 \n",
"54 4.0 3.7 0.4 1.8 1.6 1.8 2.4 \n",
"84 4.0 3.9 0.4 2.4 1.4 1.6 3.0 \n",
"50 4.0 3.6 0.5 1.8 1.5 2.8 2.3 \n",
"77 3.5 3.2 0.6 1.8 1.5 2.0 2.8 \n",
"78 3.5 3.2 0.6 1.5 1.4 1.6 2.8 \n",
"83 3.5 3.3 0.6 1.7 1.6 2.5 2.8 \n",
"87 3.5 3.2 0.6 1.4 1.6 1.9 2.7 \n",
"\n",
" FILM \n",
"49 Paul Blart: Mall Cop 2 (2015) \n",
"25 Taken 3 (2015) \n",
"28 Fantastic Four (2015) \n",
"54 Hot Pursuit (2015) \n",
"84 Hitman: Agent 47 (2015) \n",
"50 The Boy Next Door (2015) \n",
"77 Seventh Son (2015) \n",
"78 Mortdecai (2015) \n",
"83 Sinister 2 (2015) \n",
"87 Unfinished Business (2015) "
]
},
"execution_count": 248,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**FINAL TASK: Visualize the distribution of ratings across all sites for the top 10 worst movies.**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# CODE HERE"
]
},
{
"cell_type": "code",
"execution_count": 251,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\n",
"\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAB0cAAAMHCAYAAABCO19tAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAABcSAAAXEgFnn9JSAAEAAElEQVR4nOzdd3xUVfrH8e+TXiFIFxBUpFoAsStFFOsCdgQUZG2IdW3YVnR3xXXVxdVVV1cNIoKIYP+BLgqKBRWsdKmClIQaEpJAcn5/3DshZRLSJ+Xzfr3mdZl7zj33uTczE80zzznmnBMAAAAAAAAAAAAA1HVhoQ4AAAAAAAAAAAAAAKoDyVEAAAAAAAAAAAAA9QLJUQAAAAAAAAAAAAD1AslRAAAAAAAAAAAAAPUCyVEAAAAAAAAAAAAA9QLJUQAAAAAAAAAAAAD1AslRAAAAAAAAAAAAAPUCyVEAAAAAAAAAAAAA9QLJUQAAAAAAAAAAAAD1AslRAAAAAAAAAAAAAPUCyVEAAAAAAAAAAAAA9QLJUQAAAAAAAAAAAAD1AslRAAAAAAAAAAAAAPUCyVEAAAAAAAAAAAAA9QLJUQAAAKASmNkcM3NmNjbUsVQXMzvIzP5lZivNLMu/fmdmSaGODUVVxms038+4T6UFBtRzZjbCf1+tCXUsoWZm7fJ9zrSrhvMl++dKLksbAAAAajeSowAAAKjRzGxsvj+U5n9kmdnvZjbLzK42s8gqOv8gP4ZBVTF+bWVm4ZJmS7pJ0mGSsiVt9h+5IQytADPrU8zrZ5+ZbTWzL83sz2bWpBTHlPbRrpyxnmNmL5jZIjPbZmZ7/Ri/MbPxZnZCpd2Youe+1X+dd6uqcxRz3sC9XlON5+xhZqPM7EUzW5gvsV/qGMzzRzP73P9Z7TGz5Wb2pJk1L0dMZmZb/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/qOXpN/8c1aXM/3tZ8659GL6/J+kEZLamllH59yyYvoFM0fSYAWvHD1V3v/Df+mc22NmX0o6Q96auYWrQwPHF9hvZr3lremZ5O8KXEMX/3G1mQ04wFTZJ0v6j7zPgAx57+v853hZ0lX5du2W95ps7z/+IOkDeevbVsXn7IGU+H43szMkvan992ivH8Oh/mOYmV3jnHs132ETJd0sqbuZdS3hiw4Xyfvds1te1XjpAva+SPKe9n+ZIkfevW8t6TJ5sybc55wbl++w7yXt8K+jt6R3Cw17eqF/v19Me5HK43Leo8CxPST9T1IgMb1H3s9/hKQLJV1T+JgaLlLe77l+8u7BXnmfpwMl9TOzvpJWS/pYUnd5r3Enb/3qS+X97j/OOVcgCW1mZ8r7mUf7u/bKe7+29h8n+OcbW4XXBgAAUGdROQoAAIC64Cx/6+T9EbKwX+VNcXmUpFh/LcdoeUm7Sf6/J5jZwYEDAutOan8V2BtB1iz7UmXzsLw/ag7S/nUKO0n6Wt4f7J8KVuEjaYK8xMUeSX+UlOivmXmIpKmSnpL3x9hgxvr91shLpEQ55w7yr7mdpFH++UvFOXeLf18e93cVXnvzcUkys3BJb8m7xzvlVdwlOOeS5CWk35f3/yNPmdk5JZxyrLwE8gX+8Y0ktZG0pbQxl0L+qt1ST7FaQT3lJQQkaUYljZks7w/wnZ1zDZ1zsTpAosE597j/8wysk1pknb4ynP8VeYnRXEl/l9TGOdfA/5k3lTRU0lelGchPtD4t733xmqT2zrkY51xDeUm5npL+ocp9HZRGoCLulxL65G8rayVy/nVHmxVq6+Nv5/jbuf62wNS6/pcSAhX0n+bb30b7E6OLJZ3qnEtwziXISzQvk5ewescfozj/kbRI0nHOuXj/+P7+OU6VlxjNlXS3pMbOuUTnrRHdRN5n9QT5Cc8q+pwtlplFaf/92uWcSy3UfpS
"text/plain": [
"<Figure size 2250x900 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"----\n",
"\n",
"<img src=\"https://upload.wikimedia.org/wikipedia/en/6/6f/Taken_3_poster.jpg\">\n",
"\n",
"**Final thoughts: Wow! Fandango is showing around 3-4 star ratings for films that are clearly bad! Notice the biggest offender, [Taken 3!](https://www.youtube.com/watch?v=tJrfImRCHJ0). Fandango is displaying 4.5 stars on their site for a film with an [average rating of 1.86](https://en.wikipedia.org/wiki/Taken_3#Critical_response) across the other platforms!**"
]
},
{
"cell_type": "code",
"execution_count": 253,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"STARS 4.5\n",
"RATING 4.1\n",
"RT_Norm 0.4\n",
"RTU_Norm 2.3\n",
"Meta_Norm 1.3\n",
"Meta_U_Norm 2.3\n",
"IMDB_Norm 3\n",
"FILM Taken 3 (2015)\n",
"Name: 25, dtype: object"
]
},
"execution_count": 253,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 254,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"9.3"
]
},
"execution_count": 254,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"0.4+2.3+1.3+2.3+3"
]
},
{
"cell_type": "code",
"execution_count": 255,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1.86"
]
},
"execution_count": 255,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"9.3/5"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----"
]
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 1
}