{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "star_wars = pd.read_csv(\"star_wars.csv\", encoding=\"ISO-8859-1\")" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
RespondentIDHave you seen any of the 6 films in the Star Wars franchise?Do you consider yourself to be a fan of the Star Wars film franchise?Which of the following Star Wars films have you seen? Please select all that apply.Unnamed: 4Unnamed: 5Unnamed: 6Unnamed: 7Unnamed: 8Please rank the Star Wars films in order of preference with 1 being your favorite film in the franchise and 6 being your least favorite film....Unnamed: 28Which character shot first?Are you familiar with the Expanded Universe?Do you consider yourself to be a fan of the Expanded Universe?Do you consider yourself to be a fan of the Star Trek franchise?GenderAgeHousehold IncomeEducationLocation (Census Region)
03292879998YesYesStar Wars: Episode I The Phantom MenaceStar Wars: Episode II Attack of the ClonesStar Wars: Episode III Revenge of the SithStar Wars: Episode IV A New HopeStar Wars: Episode V The Empire Strikes BackStar Wars: Episode VI Return of the Jedi3.0...Very favorablyI don't understand this questionYesNoNoMale18-29NaNHigh school degreeSouth Atlantic
13292879538NoNaNNaNNaNNaNNaNNaNNaNNaN...NaNNaNNaNNaNYesMale18-29$0 - $24,999Bachelor degreeWest South Central
23292765271YesNoStar Wars: Episode I The Phantom MenaceStar Wars: Episode II Attack of the ClonesStar Wars: Episode III Revenge of the SithNaNNaNNaN1.0...Unfamiliar (N/A)I don't understand this questionNoNaNNoMale18-29$0 - $24,999High school degreeWest North Central
33292763116YesYesStar Wars: Episode I The Phantom MenaceStar Wars: Episode II Attack of the ClonesStar Wars: Episode III Revenge of the SithStar Wars: Episode IV A New HopeStar Wars: Episode V The Empire Strikes BackStar Wars: Episode VI Return of the Jedi5.0...Very favorablyI don't understand this questionNoNaNYesMale18-29$100,000 - $149,999Some college or Associate degreeWest North Central
43292731220YesYesStar Wars: Episode I The Phantom MenaceStar Wars: Episode II Attack of the ClonesStar Wars: Episode III Revenge of the SithStar Wars: Episode IV A New HopeStar Wars: Episode V The Empire Strikes BackStar Wars: Episode VI Return of the Jedi5.0...Somewhat favorablyGreedoYesNoNoMale18-29$100,000 - $149,999Some college or Associate degreeWest North Central
\n", "

5 rows × 38 columns

\n", "
" ], "text/plain": [ " RespondentID Have you seen any of the 6 films in the Star Wars franchise? \\\n", "0 3292879998 Yes \n", "1 3292879538 No \n", "2 3292765271 Yes \n", "3 3292763116 Yes \n", "4 3292731220 Yes \n", "\n", " Do you consider yourself to be a fan of the Star Wars film franchise? \\\n", "0 Yes \n", "1 NaN \n", "2 No \n", "3 Yes \n", "4 Yes \n", "\n", " Which of the following Star Wars films have you seen? Please select all that apply. \\\n", "0 Star Wars: Episode I The Phantom Menace \n", "1 NaN \n", "2 Star Wars: Episode I The Phantom Menace \n", "3 Star Wars: Episode I The Phantom Menace \n", "4 Star Wars: Episode I The Phantom Menace \n", "\n", " Unnamed: 4 \\\n", "0 Star Wars: Episode II Attack of the Clones \n", "1 NaN \n", "2 Star Wars: Episode II Attack of the Clones \n", "3 Star Wars: Episode II Attack of the Clones \n", "4 Star Wars: Episode II Attack of the Clones \n", "\n", " Unnamed: 5 \\\n", "0 Star Wars: Episode III Revenge of the Sith \n", "1 NaN \n", "2 Star Wars: Episode III Revenge of the Sith \n", "3 Star Wars: Episode III Revenge of the Sith \n", "4 Star Wars: Episode III Revenge of the Sith \n", "\n", " Unnamed: 6 \\\n", "0 Star Wars: Episode IV A New Hope \n", "1 NaN \n", "2 NaN \n", "3 Star Wars: Episode IV A New Hope \n", "4 Star Wars: Episode IV A New Hope \n", "\n", " Unnamed: 7 \\\n", "0 Star Wars: Episode V The Empire Strikes Back \n", "1 NaN \n", "2 NaN \n", "3 Star Wars: Episode V The Empire Strikes Back \n", "4 Star Wars: Episode V The Empire Strikes Back \n", "\n", " Unnamed: 8 \\\n", "0 Star Wars: Episode VI Return of the Jedi \n", "1 NaN \n", "2 NaN \n", "3 Star Wars: Episode VI Return of the Jedi \n", "4 Star Wars: Episode VI Return of the Jedi \n", "\n", " Please rank the Star Wars films in order of preference with 1 being your favorite film in the franchise and 6 being your least favorite film. \\\n", "0 3.0 \n", "1 NaN \n", "2 1.0 \n", "3 5.0 \n", "4 5.0 \n", "\n", " ... Unnamed: 28 Which character shot first? \\\n", "0 ... Very favorably I don't understand this question \n", "1 ... NaN NaN \n", "2 ... Unfamiliar (N/A) I don't understand this question \n", "3 ... Very favorably I don't understand this question \n", "4 ... Somewhat favorably Greedo \n", "\n", " Are you familiar with the Expanded Universe? \\\n", "0 Yes \n", "1 NaN \n", "2 No \n", "3 No \n", "4 Yes \n", "\n", " Do you consider yourself to be a fan of the Expanded Universe? \\\n", "0 No \n", "1 NaN \n", "2 NaN \n", "3 NaN \n", "4 No \n", "\n", " Do you consider yourself to be a fan of the Star Trek franchise? Gender \\\n", "0 No Male \n", "1 Yes Male \n", "2 No Male \n", "3 Yes Male \n", "4 No Male \n", "\n", " Age Household Income Education \\\n", "0 18-29 NaN High school degree \n", "1 18-29 $0 - $24,999 Bachelor degree \n", "2 18-29 $0 - $24,999 High school degree \n", "3 18-29 $100,000 - $149,999 Some college or Associate degree \n", "4 18-29 $100,000 - $149,999 Some college or Associate degree \n", "\n", " Location (Census Region) \n", "0 South Atlantic \n", "1 West South Central \n", "2 West North Central \n", "3 West North Central \n", "4 West North Central \n", "\n", "[5 rows x 38 columns]" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "star_wars.head()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Index(['RespondentID',\n", " 'Have you seen any of the 6 films in the Star Wars franchise?',\n", " 'Do you consider yourself to be a fan of the Star Wars film franchise?',\n", " 'Which of the following Star Wars films have you seen? Please select all that apply.',\n", " 'Unnamed: 4', 'Unnamed: 5', 'Unnamed: 6', 'Unnamed: 7', 'Unnamed: 8',\n", " 'Please rank the Star Wars films in order of preference with 1 being your favorite film in the franchise and 6 being your least favorite film.',\n", " 'Unnamed: 10', 'Unnamed: 11', 'Unnamed: 12', 'Unnamed: 13',\n", " 'Unnamed: 14',\n", " 'Please state whether you view the following characters favorably, unfavorably, or are unfamiliar with him/her.',\n", " 'Unnamed: 16', 'Unnamed: 17', 'Unnamed: 18', 'Unnamed: 19',\n", " 'Unnamed: 20', 'Unnamed: 21', 'Unnamed: 22', 'Unnamed: 23',\n", " 'Unnamed: 24', 'Unnamed: 25', 'Unnamed: 26', 'Unnamed: 27',\n", " 'Unnamed: 28', 'Which character shot first?',\n", " 'Are you familiar with the Expanded Universe?',\n", " 'Do you consider yourself to be a fan of the Expanded Universe?',\n", " 'Do you consider yourself to be a fan of the Star Trek franchise?',\n", " 'Gender', 'Age', 'Household Income', 'Education',\n", " 'Location (Census Region)'],\n", " dtype='object')" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "star_wars.columns" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
RespondentIDHave you seen any of the 6 films in the Star Wars franchise?Do you consider yourself to be a fan of the Star Wars film franchise?Which of the following Star Wars films have you seen? Please select all that apply.Unnamed: 4Unnamed: 5Unnamed: 6Unnamed: 7Unnamed: 8Please rank the Star Wars films in order of preference with 1 being your favorite film in the franchise and 6 being your least favorite film....Unnamed: 28Which character shot first?Are you familiar with the Expanded Universe?Do you consider yourself to be a fan of the Expanded Universe?Do you consider yourself to be a fan of the Star Trek franchise?GenderAgeHousehold IncomeEducationLocation (Census Region)
03292879998TrueTrueStar Wars: Episode I The Phantom MenaceStar Wars: Episode II Attack of the ClonesStar Wars: Episode III Revenge of the SithStar Wars: Episode IV A New HopeStar Wars: Episode V The Empire Strikes BackStar Wars: Episode VI Return of the Jedi3.0...Very favorablyI don't understand this questionYesNoNoMale18-29NaNHigh school degreeSouth Atlantic
13292879538FalseNaNNaNNaNNaNNaNNaNNaNNaN...NaNNaNNaNNaNYesMale18-29$0 - $24,999Bachelor degreeWest South Central
23292765271TrueFalseStar Wars: Episode I The Phantom MenaceStar Wars: Episode II Attack of the ClonesStar Wars: Episode III Revenge of the SithNaNNaNNaN1.0...Unfamiliar (N/A)I don't understand this questionNoNaNNoMale18-29$0 - $24,999High school degreeWest North Central
33292763116TrueTrueStar Wars: Episode I The Phantom MenaceStar Wars: Episode II Attack of the ClonesStar Wars: Episode III Revenge of the SithStar Wars: Episode IV A New HopeStar Wars: Episode V The Empire Strikes BackStar Wars: Episode VI Return of the Jedi5.0...Very favorablyI don't understand this questionNoNaNYesMale18-29$100,000 - $149,999Some college or Associate degreeWest North Central
43292731220TrueTrueStar Wars: Episode I The Phantom MenaceStar Wars: Episode II Attack of the ClonesStar Wars: Episode III Revenge of the SithStar Wars: Episode IV A New HopeStar Wars: Episode V The Empire Strikes BackStar Wars: Episode VI Return of the Jedi5.0...Somewhat favorablyGreedoYesNoNoMale18-29$100,000 - $149,999Some college or Associate degreeWest North Central
\n", "

5 rows × 38 columns

\n", "
" ], "text/plain": [ " RespondentID Have you seen any of the 6 films in the Star Wars franchise? \\\n", "0 3292879998 True \n", "1 3292879538 False \n", "2 3292765271 True \n", "3 3292763116 True \n", "4 3292731220 True \n", "\n", " Do you consider yourself to be a fan of the Star Wars film franchise? \\\n", "0 True \n", "1 NaN \n", "2 False \n", "3 True \n", "4 True \n", "\n", " Which of the following Star Wars films have you seen? Please select all that apply. \\\n", "0 Star Wars: Episode I The Phantom Menace \n", "1 NaN \n", "2 Star Wars: Episode I The Phantom Menace \n", "3 Star Wars: Episode I The Phantom Menace \n", "4 Star Wars: Episode I The Phantom Menace \n", "\n", " Unnamed: 4 \\\n", "0 Star Wars: Episode II Attack of the Clones \n", "1 NaN \n", "2 Star Wars: Episode II Attack of the Clones \n", "3 Star Wars: Episode II Attack of the Clones \n", "4 Star Wars: Episode II Attack of the Clones \n", "\n", " Unnamed: 5 \\\n", "0 Star Wars: Episode III Revenge of the Sith \n", "1 NaN \n", "2 Star Wars: Episode III Revenge of the Sith \n", "3 Star Wars: Episode III Revenge of the Sith \n", "4 Star Wars: Episode III Revenge of the Sith \n", "\n", " Unnamed: 6 \\\n", "0 Star Wars: Episode IV A New Hope \n", "1 NaN \n", "2 NaN \n", "3 Star Wars: Episode IV A New Hope \n", "4 Star Wars: Episode IV A New Hope \n", "\n", " Unnamed: 7 \\\n", "0 Star Wars: Episode V The Empire Strikes Back \n", "1 NaN \n", "2 NaN \n", "3 Star Wars: Episode V The Empire Strikes Back \n", "4 Star Wars: Episode V The Empire Strikes Back \n", "\n", " Unnamed: 8 \\\n", "0 Star Wars: Episode VI Return of the Jedi \n", "1 NaN \n", "2 NaN \n", "3 Star Wars: Episode VI Return of the Jedi \n", "4 Star Wars: Episode VI Return of the Jedi \n", "\n", " Please rank the Star Wars films in order of preference with 1 being your favorite film in the franchise and 6 being your least favorite film. \\\n", "0 3.0 \n", "1 NaN \n", "2 1.0 \n", "3 5.0 \n", "4 5.0 \n", "\n", " ... Unnamed: 28 Which character shot first? \\\n", "0 ... Very favorably I don't understand this question \n", "1 ... NaN NaN \n", "2 ... Unfamiliar (N/A) I don't understand this question \n", "3 ... Very favorably I don't understand this question \n", "4 ... Somewhat favorably Greedo \n", "\n", " Are you familiar with the Expanded Universe? \\\n", "0 Yes \n", "1 NaN \n", "2 No \n", "3 No \n", "4 Yes \n", "\n", " Do you consider yourself to be a fan of the Expanded Universe? \\\n", "0 No \n", "1 NaN \n", "2 NaN \n", "3 NaN \n", "4 No \n", "\n", " Do you consider yourself to be a fan of the Star Trek franchise? Gender \\\n", "0 No Male \n", "1 Yes Male \n", "2 No Male \n", "3 Yes Male \n", "4 No Male \n", "\n", " Age Household Income Education \\\n", "0 18-29 NaN High school degree \n", "1 18-29 $0 - $24,999 Bachelor degree \n", "2 18-29 $0 - $24,999 High school degree \n", "3 18-29 $100,000 - $149,999 Some college or Associate degree \n", "4 18-29 $100,000 - $149,999 Some college or Associate degree \n", "\n", " Location (Census Region) \n", "0 South Atlantic \n", "1 West South Central \n", "2 West North Central \n", "3 West North Central \n", "4 West North Central \n", "\n", "[5 rows x 38 columns]" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "yes_no = {\"Yes\": True, \"No\": False}\n", "\n", "for col in [\n", " \"Have you seen any of the 6 films in the Star Wars franchise?\",\n", " \"Do you consider yourself to be a fan of the Star Wars film franchise?\"\n", " ]:\n", " star_wars[col] = star_wars[col].map(yes_no)\n", "\n", "star_wars.head()" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "\n", "movie_mapping = {\n", " \"Star Wars: Episode I The Phantom Menace\": True,\n", " np.nan: False,\n", " \"Star Wars: Episode II Attack of the Clones\": True,\n", " \"Star Wars: Episode III Revenge of the Sith\": True,\n", " \"Star Wars: Episode IV A New Hope\": True,\n", " \"Star Wars: Episode V The Empire Strikes Back\": True,\n", " \"Star Wars: Episode VI Return of the Jedi\": True\n", "}\n", "\n", "for col in star_wars.columns[3:9]:\n", " star_wars[col] = star_wars[col].map(movie_mapping)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
RespondentIDHave you seen any of the 6 films in the Star Wars franchise?Do you consider yourself to be a fan of the Star Wars film franchise?seen_1seen_2seen_3seen_4seen_5seen_6Please rank the Star Wars films in order of preference with 1 being your favorite film in the franchise and 6 being your least favorite film....Unnamed: 28Which character shot first?Are you familiar with the Expanded Universe?Do you consider yourself to be a fan of the Expanded Universe?Do you consider yourself to be a fan of the Star Trek franchise?GenderAgeHousehold IncomeEducationLocation (Census Region)
03292879998TrueTrueTrueTrueTrueTrueTrueTrue3.0...Very favorablyI don't understand this questionYesNoNoMale18-29NaNHigh school degreeSouth Atlantic
13292879538FalseNaNFalseFalseFalseFalseFalseFalseNaN...NaNNaNNaNNaNYesMale18-29$0 - $24,999Bachelor degreeWest South Central
23292765271TrueFalseTrueTrueTrueFalseFalseFalse1.0...Unfamiliar (N/A)I don't understand this questionNoNaNNoMale18-29$0 - $24,999High school degreeWest North Central
33292763116TrueTrueTrueTrueTrueTrueTrueTrue5.0...Very favorablyI don't understand this questionNoNaNYesMale18-29$100,000 - $149,999Some college or Associate degreeWest North Central
43292731220TrueTrueTrueTrueTrueTrueTrueTrue5.0...Somewhat favorablyGreedoYesNoNoMale18-29$100,000 - $149,999Some college or Associate degreeWest North Central
\n", "

5 rows × 38 columns

\n", "
" ], "text/plain": [ " RespondentID Have you seen any of the 6 films in the Star Wars franchise? \\\n", "0 3292879998 True \n", "1 3292879538 False \n", "2 3292765271 True \n", "3 3292763116 True \n", "4 3292731220 True \n", "\n", " Do you consider yourself to be a fan of the Star Wars film franchise? \\\n", "0 True \n", "1 NaN \n", "2 False \n", "3 True \n", "4 True \n", "\n", " seen_1 seen_2 seen_3 seen_4 seen_5 seen_6 \\\n", "0 True True True True True True \n", "1 False False False False False False \n", "2 True True True False False False \n", "3 True True True True True True \n", "4 True True True True True True \n", "\n", " Please rank the Star Wars films in order of preference with 1 being your favorite film in the franchise and 6 being your least favorite film. \\\n", "0 3.0 \n", "1 NaN \n", "2 1.0 \n", "3 5.0 \n", "4 5.0 \n", "\n", " ... Unnamed: 28 Which character shot first? \\\n", "0 ... Very favorably I don't understand this question \n", "1 ... NaN NaN \n", "2 ... Unfamiliar (N/A) I don't understand this question \n", "3 ... Very favorably I don't understand this question \n", "4 ... Somewhat favorably Greedo \n", "\n", " Are you familiar with the Expanded Universe? \\\n", "0 Yes \n", "1 NaN \n", "2 No \n", "3 No \n", "4 Yes \n", "\n", " Do you consider yourself to be a fan of the Expanded Universe? \\\n", "0 No \n", "1 NaN \n", "2 NaN \n", "3 NaN \n", "4 No \n", "\n", " Do you consider yourself to be a fan of the Star Trek franchise? Gender \\\n", "0 No Male \n", "1 Yes Male \n", "2 No Male \n", "3 Yes Male \n", "4 No Male \n", "\n", " Age Household Income Education \\\n", "0 18-29 NaN High school degree \n", "1 18-29 $0 - $24,999 Bachelor degree \n", "2 18-29 $0 - $24,999 High school degree \n", "3 18-29 $100,000 - $149,999 Some college or Associate degree \n", "4 18-29 $100,000 - $149,999 Some college or Associate degree \n", "\n", " Location (Census Region) \n", "0 South Atlantic \n", "1 West South Central \n", "2 West North Central \n", "3 West North Central \n", "4 West North Central \n", "\n", "[5 rows x 38 columns]" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "star_wars = star_wars.rename(columns={\n", " \"Which of the following Star Wars films have you seen? Please select all that apply.\": \"seen_1\",\n", " \"Unnamed: 4\": \"seen_2\",\n", " \"Unnamed: 5\": \"seen_3\",\n", " \"Unnamed: 6\": \"seen_4\",\n", " \"Unnamed: 7\": \"seen_5\",\n", " \"Unnamed: 8\": \"seen_6\"\n", " })\n", "\n", "star_wars.head()" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
RespondentIDHave you seen any of the 6 films in the Star Wars franchise?Do you consider yourself to be a fan of the Star Wars film franchise?seen_1seen_2seen_3seen_4seen_5seen_6ranking_1...Unnamed: 28Which character shot first?Are you familiar with the Expanded Universe?Do you consider yourself to be a fan of the Expanded Universe?Do you consider yourself to be a fan of the Star Trek franchise?GenderAgeHousehold IncomeEducationLocation (Census Region)
03292879998TrueTrueTrueTrueTrueTrueTrueTrue3.0...Very favorablyI don't understand this questionYesNoNoMale18-29NaNHigh school degreeSouth Atlantic
13292879538FalseNaNFalseFalseFalseFalseFalseFalseNaN...NaNNaNNaNNaNYesMale18-29$0 - $24,999Bachelor degreeWest South Central
23292765271TrueFalseTrueTrueTrueFalseFalseFalse1.0...Unfamiliar (N/A)I don't understand this questionNoNaNNoMale18-29$0 - $24,999High school degreeWest North Central
33292763116TrueTrueTrueTrueTrueTrueTrueTrue5.0...Very favorablyI don't understand this questionNoNaNYesMale18-29$100,000 - $149,999Some college or Associate degreeWest North Central
43292731220TrueTrueTrueTrueTrueTrueTrueTrue5.0...Somewhat favorablyGreedoYesNoNoMale18-29$100,000 - $149,999Some college or Associate degreeWest North Central
\n", "

5 rows × 38 columns

\n", "
" ], "text/plain": [ " RespondentID Have you seen any of the 6 films in the Star Wars franchise? \\\n", "0 3292879998 True \n", "1 3292879538 False \n", "2 3292765271 True \n", "3 3292763116 True \n", "4 3292731220 True \n", "\n", " Do you consider yourself to be a fan of the Star Wars film franchise? \\\n", "0 True \n", "1 NaN \n", "2 False \n", "3 True \n", "4 True \n", "\n", " seen_1 seen_2 seen_3 seen_4 seen_5 seen_6 ranking_1 ... \\\n", "0 True True True True True True 3.0 ... \n", "1 False False False False False False NaN ... \n", "2 True True True False False False 1.0 ... \n", "3 True True True True True True 5.0 ... \n", "4 True True True True True True 5.0 ... \n", "\n", " Unnamed: 28 Which character shot first? \\\n", "0 Very favorably I don't understand this question \n", "1 NaN NaN \n", "2 Unfamiliar (N/A) I don't understand this question \n", "3 Very favorably I don't understand this question \n", "4 Somewhat favorably Greedo \n", "\n", " Are you familiar with the Expanded Universe? \\\n", "0 Yes \n", "1 NaN \n", "2 No \n", "3 No \n", "4 Yes \n", "\n", " Do you consider yourself to be a fan of the Expanded Universe? \\\n", "0 No \n", "1 NaN \n", "2 NaN \n", "3 NaN \n", "4 No \n", "\n", " Do you consider yourself to be a fan of the Star Trek franchise? Gender \\\n", "0 No Male \n", "1 Yes Male \n", "2 No Male \n", "3 Yes Male \n", "4 No Male \n", "\n", " Age Household Income Education \\\n", "0 18-29 NaN High school degree \n", "1 18-29 $0 - $24,999 Bachelor degree \n", "2 18-29 $0 - $24,999 High school degree \n", "3 18-29 $100,000 - $149,999 Some college or Associate degree \n", "4 18-29 $100,000 - $149,999 Some college or Associate degree \n", "\n", " Location (Census Region) \n", "0 South Atlantic \n", "1 West South Central \n", "2 West North Central \n", "3 West North Central \n", "4 West North Central \n", "\n", "[5 rows x 38 columns]" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "star_wars = star_wars.rename(columns={\n", " \"Please rank the Star Wars films in order of preference with 1 being your favorite film in the franchise and 6 being your least favorite film.\": \"ranking_1\",\n", " \"Unnamed: 10\": \"ranking_2\",\n", " \"Unnamed: 11\": \"ranking_3\",\n", " \"Unnamed: 12\": \"ranking_4\",\n", " \"Unnamed: 13\": \"ranking_5\",\n", " \"Unnamed: 14\": \"ranking_6\"\n", " })\n", "\n", "star_wars.head()" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "star_wars[star_wars.columns[9:15]] = star_wars[star_wars.columns[9:15]].astype(float)" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "ranking_1 3.732934\n", "ranking_2 4.087321\n", "ranking_3 4.341317\n", "ranking_4 3.272727\n", "ranking_5 2.513158\n", "ranking_6 3.047847\n", "dtype: float64" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "star_wars[star_wars.columns[9:15]].mean()" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWoAAAD4CAYAAADFAawfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxp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XdnOSPk4y+k2prQ93dryS5uvX9UpIvnMKt769RVZ9P8uUkd1TVy1X1oU3PdEJ3J3kwh6u0FxY/79v0UCd0a5KnquqbOVwsPNndW3FL2xb5nSTPVtU3knw1yRPd/a8bnulNbe3teQDbYmtX1ADbQqgBhhNqgOGEGmA4oQYYTqgBhhNqgOF+AeNYG5raNfHFAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "\n", "plt.bar(range(6), star_wars[star_wars.columns[9:15]].mean())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Rankings\n", "\n", "So far, we've cleaned up the data, renamed several columns, and computed the average ranking of each movie. As we suspected, it looks like the \"original\" movies are rated much more highly than the newer ones." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "seen_1 673\n", "seen_2 571\n", "seen_3 550\n", "seen_4 607\n", "seen_5 758\n", "seen_6 738\n", "dtype: int64" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "star_wars[star_wars.columns[3:9]].sum()" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD4CAYAAAAXUaZHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAQWElEQVR4nO3df6jdd33H8edraa1aFdv1JmRJWDLIylLB1l0yR0E2ozZOMfnDwi0oYWRkf8RR2cAl/jP8I9C/xP2xDoK6ZegMd2ppUHBm0SKCa7yp8UeSZr2ztbkky71WRDshkvjeH/dbdpLc23uSc25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4PHu39/NuqmBrQa+GaSHzB/gnG4qpq4fLAhq4BvJ/k+cBT4alV9bcQ9vSwvhZSkBnnmLkkNMtwlqUGGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSg/4PwZpshl0vO9cAAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "plt.bar(range(6), star_wars[star_wars.columns[3:9]].sum())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# View counts\n", "\n", "It appears that more respondents aw the original movies than the newer movies. This reinforces what we saw in the rankings, where the earlier movies seem to be more popular." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "males = star_wars[star_wars[\"Gender\"] == \"Male\"]\n", "females = star_wars[star_wars[\"Gender\"] == \"Female\"]" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD4CAYAAAD8Zh1EAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAPgUlEQVR4nO3dX4he9Z3H8fenaZaW/iEXGdaQP6awYaEWWmWIirCItIv/qHvhhUIryEJQLFi2UGwvLL3r3pRi0zWEVlppqRRsJWjcrlClCuufSRpTY9olFBeHBDK1NDYoLWm/ezFHmH0yM8+ZzBmfzM/3Cx5y/vxyns9B/HD45ZznpKqQJK1/75t0AEnSMCx0SWqEhS5JjbDQJakRFrokNeL9k/rizZs3186dOyf19ZK0Lh06dOj3VTW12L6JFfrOnTuZmZmZ1NdL0rqU5H+X2ueUiyQ1wkKXpEZY6JLUCAtdkhphoUtSIyx0SWqEhS5JjbDQJakRFrokNWJiT4qqbTvve2LSEXp57Rs3TTqCNBiv0CWpEV6hXyS8opW0Wl6hS1IjLHR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1NslG4Dng3u4p63Utyb8B08BHq+rmSedZjSSvAdNVNehDRWvJK/R+P22wrlTVL4E/TDrHUKrqVFUd7pb/BBxn/knkdan7iYyz3erG7rPur6ySbANuAr476SzvVRb60j9boItQkp3A5cALk02yOt3UxBHgNPBUVa3r8+l8C/gy8LdJBxlIAf+V5FD3syUXPQu9588WaPKSfBh4FPhiVb056TyrUVV/rapPMf9U9e4k63pqLMnNwOmqOjTpLAO6pqquYP7XZO/ppjIvaha6P1uwLnRzzY8CP6qqn046z1Cq6o/AM8D1E46yWtcAn+3mnR8Brkvyw8lGWp2qOtn9eRr4GfPTsxc1C73fTxtogrp/RPwecLyqvjnpPKuVZCrJpm75g8Cngd9MNtXqVNVXqmpbVe1k/v+hX1TV5yYc64Il+VD3D/Ak+RDwz8BFf9fYe77Qq+oc8M5PGxwHflJVxyabanWS/Bj4b+Afk8wm+ddJZ1qla4DPM3/Vd6T73DjpUKuwBXg6yVHmLyieqqp1f5tfY/4eeC7Jy8CLwBNV9Z8TzjTWe/62RUlqxXv+Cl2SWmGhS1IjLHRJaoSFLkmNsNAlqREWuiQ1wkKXpEb8H2FAR4gKyj18AAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWoAAAD4CAYAAADFAawfAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAJ20lEQVR4nO3dT6jld3nH8c/TybSRqLjIpYRM6O2iBMSFKZd0MdBFsCVNgu2iCwNmZZlNhUgLElelO1fipptBQ1sURRoLJaF/AiaEgEbvxGiNo0VKSoPCXBHRbFqiTxf3TE3iTe4Z7zlznnvm9YJLzpnzm8PzZcibL7/z+91T3R0A5vq1TQ8AwFsTaoDhhB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JLl7jYNdFVe13996m51iVbVtPsn1r2rb1JNu3ptO0nmVOfbyc5I7XPD+X5PvrGQeAN1om1F9L8jtV9dtV9etJPpDkn9Y7FgBXHXvqo7tfraoPJ/nXJGeSPNrdL659stUaeUrmBLZtPcn2rWnb1pNs35pOzXqO/TARgM1yZyLAcEINMNxWh3rbbn2vqker6kpVfWvTs6xCVd1RVU9V1eWqerGqHt70TCdVVTdX1Ver6huLNf31pmdahao6U1Vfr6rHNz3LKlTVS1X171X1QlXtb3qe42ztOerFre//keQPcniJ4deSPNjd397oYCdQVb+f5JUkf9/d79n0PCdVVbclua27n6+qdyS5lORPTvm/USW5pbtfqaqzSZ5N8nB3f2XDo51IVf1Fkr0k7+zuBzY9z0lV1UtJ9rp70g0vb2qbd9Rbd+t7dz+T5EebnmNVuvsH3f384vFPk1xOcvtmpzqZPvTK4unZxc+p3g1V1bkk9yf51KZnuVFtc6hvT/Lfr3n+ck55BLZZVe0muSvJc5ud5OQWpwleSHIlyZPdfdrX9MkkH03y800PskKd5N+q6tLi11+Mts2hXurWdzavqt6e5LEkH+nun2x6npPq7p9193tzeBfv3VV1ak9TVdUDSa5096VNz7Ji57v7d3P4W0H/fHFacaxtDrVb30+BxXncx5J8tru/uOl5Vqm7f5zk6ST3bniUkzif5P2Lc7qfT3JPVX1msyOdXHd/f/HfK0n+MYenSsfa5lC79X24xQdvn05yubs/sel5VqGqdqrqXYvHb0vyviTf2exUv7ru/lh3n+vu3Rz+P/Sl7v7ghsc6kaq6ZfHhdarqliR/mGT0lVRbG+rufjXJ1VvfLyf5wim89f11qupzSb6c5M6qermqPrTpmU7ofJKHcrhLe2Hxc9+mhzqh25I8VVXfzOFm4cnu3opL2rbIbyZ5tqq+keSrSZ7o7n/Z8ExvaWsvzwPYFlu7owbYFkINMJxQAwwn1ADDCTXAcEINMJxQAwz3f7ojHYkoKOLhAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "plt.bar(range(6), males[males.columns[9:15]].mean())\n", "plt.show()\n", "\n", "plt.bar(range(6), females[females.columns[9:15]].mean())\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD4CAYAAAAXUaZHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAARFElEQVR4nO3dX6hdZ53G8e9j2mmlKrb0tMQkTIJEmVQwHQ4ZoTA41rGZKqbCdEjBkosO8SKFygjSeKNeBHrhv5upEG0xMzpmAlUa1HGMsSIFp/GkprVJmmmwmeaYkBx1xPYmQ9LfXJxV3EnOydk5e5/uk7ffD2zWWu9619q/RelzVt69/qSqkCS15U2jLkCSNHyGuyQ1yHCXpAYZ7pLUIMNdkhp01agLALjxxhtr5cqVoy5Dkq4o+/fv/21Vjc20blGE+8qVK5mYmBh1GZJ0RUnyP7Otc1hGkhrUd7gnWZLkl0m+1y3fkGRPkhe66fU9fbcmOZrkSJI7FqJwSdLsLufM/QHgcM/yg8DeqloN7O2WSbIG2AjcAqwHHk6yZDjlSpL60Ve4J1kOfBj4ek/zBmBHN78DuKunfWdVnamqF4GjwLrhlCtJ6ke/Z+5fAT4NvNrTdnNVnQTopjd17cuA4z39Jru28yTZnGQiycTU1NRlFy5Jmt2c4Z7kI8Dpqtrf5z4zQ9tFTyerqu1VNV5V42NjM17JI0map34uhbwN+GiSO4Frgbcl+SZwKsnSqjqZZClwuus/Cazo2X45cGKYRUuSLm3OM/eq2lpVy6tqJdM/lP6kqj4O7AY2dd02AY9387uBjUmuSbIKWA3sG3rlkqRZDXIT00PAriT3AS8BdwNU1cEku4BDwFlgS1WdG7hSSVLfshhe1jE+Pl7eoSqNzsoHvz/qEvpy7KEPj7qERSXJ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HVNrxwNX0DEtyA+qkqTR8g5VSWqQ4S5JDTLcL9DaYxOSPJrkdJLnRl3LMCRZkeSJJIeTHEzywKhrGlSSa5PsS/JMd0yfH3VNw5BkSZJfJvneqGsZhiTHkvwqyYEkE6OuZy6OuffoHpvw38DfMn055y+Ae6rq0EgLG0CSvwZeAf6lqt4z6noGlWQpsLSqnk7yVmA/cNcV/t8owHVV9UqSq4EngQeq6r9GXNpAkvwTMA68rao+Mup6BpXkGDBeVYvpJqZZeeZ+vuYem1BVPwN+P+o6hqWqTlbV0938y8BhYNloqxpMTXulW7y6+1zRZ11JlgMfBr4+6lreqAz38y0DjvcsT3KFB0fLkqwEbgWeGm0lg+uGMA4Ap4E9VXWlH9NXgE8Dr466kCEq4EdJ9nePT1nUDPfzzfnYBC0OSd4CPAZ8sqr+OOp6BlVV56pqLdN3c69LcsUOoSX5CHC6qvaPupYhu62q/pLpp91u6YY8Fy3D/Xw+NuEK0I1LPwZ8q6q+M+p6hqmq/gD8FFg/4lIGcRvw0W6MeifwgSTfHG1Jg6uqE930NPBdpodxFy3D/Xw+NmGR6358fAQ4XFVfGnU9w5BkLMnbu/k3Ax8Enh9tVfNXVVuranlVrWT6/6GfVNXHR1zWQJJc1/2AT5LrgA8Bi/oKNMO9R1WdBV57bMJhYNcV+NiE8yT5NvBz4N1JJpPcN+qaBnQbcC/TZ4MHus+doy5qQEuBJ5I8y/QJxp6qauLywYbcDDyZ5BlgH/D9qvrhiGu6JC+FlKQGeeYuSQ0y3CWpQYa7JDXIcJekBhnuktQgw12SGmS4S1KD/h97f8+87HcQGAAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAD4CAYAAAAXUaZHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yL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Avjreqxauqh6pqeVWtZPb/0H9U1V+OuayBJLm++wU+Sa4HPghc0XegGe49quoM8PprEw4BO6/C1yacI8nXgB8C70oyneSBcdc0oDuA+5m9GtzffT407qIGtBT4XpLnmb3A2F1VTdw+2JBbgKeTPAfsBZ6qqm+NuaaL8lZISWqQV+6S1CDDXZIaZLhLUoMMd0lqkOEuSQ0y3CWpQYa7JDXo/wHDLluRgybuAQAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "plt.bar(range(6), males[males.columns[3:9]].sum())\n", "plt.show()\n", "\n", "plt.bar(range(6), females[females.columns[3:9]].sum())\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Male/female differences in favorite Star Wars movie and most-seen movie\n", "\n", "Interestingly, more males watches episodes 1-3, but males liked them far less than females did." ] } ], "metadata": { "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.8.5" } }, "nbformat": 4, "nbformat_minor": 1 }