diff --git a/.ipynb_checkpoints/argument-checkpoint.ipynb b/.ipynb_checkpoints/argument-checkpoint.ipynb index 3e95972..d1e599f 100644 --- a/.ipynb_checkpoints/argument-checkpoint.ipynb +++ b/.ipynb_checkpoints/argument-checkpoint.ipynb @@ -42,7 +42,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 1, "id": "technical-evans", "metadata": {}, "outputs": [], @@ -54,7 +54,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 2, "id": "overhead-sigma", "metadata": { "scrolled": true @@ -68,7 +68,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 3, "id": "heated-blade", "metadata": {}, "outputs": [ @@ -281,7 +281,7 @@ "[5 rows x 21 columns]" ] }, - "execution_count": 25, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -354,7 +354,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 4, "id": "9e6b2020-4df8-4e45-8b00-fbc398964376", "metadata": {}, "outputs": [], @@ -364,7 +364,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 5, "id": "b57dfb5b-f725-43d7-bfaa-76e7d86ec69f", "metadata": { "scrolled": true @@ -376,7 +376,7 @@ "np.float64(5.958565647986926)" ] }, - "execution_count": 27, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -387,7 +387,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 6, "id": "496218f8-6823-4570-b97f-bdf2461e3e06", "metadata": { "scrolled": true @@ -399,7 +399,7 @@ "np.float64(0.3291714363332999)" ] }, - "execution_count": 28, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -410,7 +410,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 7, "id": "247b1e93-df57-4b13-a22f-656e6740e715", "metadata": {}, "outputs": [ @@ -420,7 +420,7 @@ "np.float64(6.2877370843202245)" ] }, - "execution_count": 29, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -439,7 +439,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 8, "id": "c0a35626-5356-4b7b-8e2b-eb83cc42b8f8", "metadata": {}, "outputs": [], @@ -449,7 +449,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 9, "id": "08415fc5-0f02-4e13-906a-c9dee9f8118e", "metadata": {}, "outputs": [ @@ -459,7 +459,7 @@ "np.float64(5.66912563466798)" ] }, - "execution_count": 31, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -470,7 +470,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 10, "id": "f37fb84f-4861-4e14-b6dc-502c180dcb4b", "metadata": { "scrolled": true @@ -482,7 +482,7 @@ "np.float64(0.20101735750424538)" ] }, - "execution_count": 32, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -493,7 +493,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 11, "id": "a60e7ec7-27fb-47df-ba2a-94a84c7926e5", "metadata": {}, "outputs": [ @@ -503,7 +503,7 @@ "np.float64(5.870142992047225)" ] }, - "execution_count": 33, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -531,7 +531,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 12, "id": "79e1f833-833a-4a75-b41d-eeab580bf713", "metadata": { "scrolled": true @@ -543,7 +543,7 @@ "Text(0.5, 1.0, 'LeBron James vs Kevin Durant')" ] }, - "execution_count": 34, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" }, @@ -575,6 +575,45 @@ "This shows that Kevin Durant was better in 2014 and 2015 and LeBron James was better from 2016-2022. This is the case because the data point for Kevin Durant was higher than LeBron James' for the seasons of 2014 and 2015 and LeBron James' data point was higher for the seasons of 2016-2022." ] }, + { + "cell_type": "markdown", + "id": "ba9af903-f021-4ef4-852e-283498b617b0", + "metadata": {}, + "source": [ + "#### Looking at Every Other Season\n" + ] + }, + { + "cell_type": "code", + "execution_count": 55, + "id": "1429f9b2-8af9-4ae9-93da-002bc7a4148a", + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "24.575206358620623\n", + "24.916312863640343\n" + ] + } + ], + "source": [ + "print(Durant_df.iloc[1]['raptor_total']+Durant_df.iloc[3]['raptor_total']+Durant_df.iloc[5]['raptor_total']+Durant_df.iloc[7]['raptor_total'])\n", + "print(Lebron_df.iloc[1]['raptor_total']+Lebron_df.iloc[3]['raptor_total']+Lebron_df.iloc[5]['raptor_total']+Lebron_df.iloc[7]['raptor_total'])" + ] + }, + { + "cell_type": "markdown", + "id": "e3e9a092-d290-4050-9780-0dfc9562967e", + "metadata": {}, + "source": [ + "#### Results\n", + "This shows that in the odd seasons from 2014-2022 LeBron James was barely better than Kevin Durant. This reorganizes the data by only including a few seasons." + ] + }, { "cell_type": "markdown", "id": "collectible-puppy", @@ -610,7 +649,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 13, "id": "e40a1730-6c77-425c-81b2-55f2bcd7d5d2", "metadata": {}, "outputs": [ @@ -952,7 +991,7 @@ "PJ Tucker -1.726914" ] }, - "execution_count": 35, + "execution_count": 13, "metadata": {}, "output_type": "execute_result" } @@ -969,7 +1008,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 14, "id": "8ea17bc0-35b9-4378-a35d-90f9cfd71064", "metadata": {}, "outputs": [ @@ -1036,7 +1075,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 15, "id": "5aca0be4-035f-4de2-a955-b9584221eccd", "metadata": {}, "outputs": [ @@ -1378,7 +1417,7 @@ "Isaiah Thomas -6.412895" ] }, - "execution_count": 37, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -1395,7 +1434,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 16, "id": "afe7a597-ce41-45f5-89f1-b82064088890", "metadata": {}, "outputs": [ @@ -1423,7 +1462,7 @@ "metadata": {}, "source": [ "### Results\n", - "I found that the best defensive player from 2014-2022 was Draymond Green. This makes sense as he has won the Defensive Player Of The Year award and is known primarily for his defense. He is known as one of the best defensive players in the league. I am not surprised to see Draymond Green be the number one ranked defensive player. The three next best defensive players are Anthony Davis, Joakim Noah, and Paul George. These players are also known for their defense, so it makes sense that they are rated so highly. It is interesting to note that 4 of the top 5 players are Power Forwards or Centers which also shows that this could lead to research on whether Power Forwards and Centers generally play the best defense." + "I found that the best defensive player from 2014-2022 was Draymond Green. This makes sense as he has won the Defensive Player Of The Year award and is known primarily for his defense. He is known as one of the best defensive players in the league. I am not surprised to see Draymond Green be the number one ranked defensive player. The four next best defensive players are Joakim Noah, Anthony Davis, Marc Gasol, and Paul George. These players are also known for their defense, so it makes sense that they are rated so highly. It is interesting to note that 4 of the top 5 players are Power Forwards or Centers which also shows that this could lead to research on whether Power Forwards and Centers generally play the best defense." ] }, { @@ -1504,22 +1543,6 @@ "source": [ "The final poster is attached as the James Berent Flyer.pdf" ] - }, - { - "cell_type": "markdown", - "id": "44248208-44a9-47f5-85e9-c61d4b06c9a0", - "metadata": {}, - "source": [ - "# Add Data Structures" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "398f3b13-0813-4052-a43f-68903048ed39", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/argument.ipynb b/argument.ipynb index 3e95972..ff3aaeb 100644 --- a/argument.ipynb +++ b/argument.ipynb @@ -42,7 +42,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 1, "id": "technical-evans", "metadata": {}, "outputs": [], @@ -54,7 +54,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 2, "id": "overhead-sigma", "metadata": { "scrolled": true @@ -68,7 +68,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 3, "id": "heated-blade", "metadata": {}, "outputs": [ @@ -281,7 +281,7 @@ "[5 rows x 21 columns]" ] }, - "execution_count": 25, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -354,7 +354,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 4, "id": "9e6b2020-4df8-4e45-8b00-fbc398964376", "metadata": {}, "outputs": [], @@ -364,7 +364,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 5, "id": "b57dfb5b-f725-43d7-bfaa-76e7d86ec69f", "metadata": { "scrolled": true @@ -376,7 +376,7 @@ "np.float64(5.958565647986926)" ] }, - "execution_count": 27, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -387,7 +387,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 6, "id": "496218f8-6823-4570-b97f-bdf2461e3e06", "metadata": { "scrolled": true @@ -399,7 +399,7 @@ "np.float64(0.3291714363332999)" ] }, - "execution_count": 28, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -410,7 +410,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 7, "id": "247b1e93-df57-4b13-a22f-656e6740e715", "metadata": {}, "outputs": [ @@ -420,7 +420,7 @@ "np.float64(6.2877370843202245)" ] }, - "execution_count": 29, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -439,7 +439,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 8, "id": "c0a35626-5356-4b7b-8e2b-eb83cc42b8f8", "metadata": {}, "outputs": [], @@ -449,7 +449,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 9, "id": "08415fc5-0f02-4e13-906a-c9dee9f8118e", "metadata": {}, "outputs": [ @@ -459,7 +459,7 @@ "np.float64(5.66912563466798)" ] }, - "execution_count": 31, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -470,7 +470,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 10, "id": "f37fb84f-4861-4e14-b6dc-502c180dcb4b", "metadata": { "scrolled": true @@ -482,7 +482,7 @@ "np.float64(0.20101735750424538)" ] }, - "execution_count": 32, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -493,7 +493,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 11, "id": "a60e7ec7-27fb-47df-ba2a-94a84c7926e5", "metadata": {}, "outputs": [ @@ -503,7 +503,7 @@ "np.float64(5.870142992047225)" ] }, - "execution_count": 33, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -531,7 +531,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 12, "id": "79e1f833-833a-4a75-b41d-eeab580bf713", "metadata": { "scrolled": true @@ -543,7 +543,7 @@ "Text(0.5, 1.0, 'LeBron James vs Kevin Durant')" ] }, - "execution_count": 34, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" }, @@ -575,6 +575,45 @@ "This shows that Kevin Durant was better in 2014 and 2015 and LeBron James was better from 2016-2022. This is the case because the data point for Kevin Durant was higher than LeBron James' for the seasons of 2014 and 2015 and LeBron James' data point was higher for the seasons of 2016-2022." ] }, + { + "cell_type": "markdown", + "id": "ba9af903-f021-4ef4-852e-283498b617b0", + "metadata": {}, + "source": [ + "#### Looking at Every Other Season\n" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "1429f9b2-8af9-4ae9-93da-002bc7a4148a", + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "24.575206358620623\n", + "24.916312863640343\n" + ] + } + ], + "source": [ + "print(Durant_df.iloc[1]['raptor_total']+Durant_df.iloc[3]['raptor_total']+Durant_df.iloc[5]['raptor_total']+Durant_df.iloc[7]['raptor_total'])\n", + "print(Lebron_df.iloc[1]['raptor_total']+Lebron_df.iloc[3]['raptor_total']+Lebron_df.iloc[5]['raptor_total']+Lebron_df.iloc[7]['raptor_total'])" + ] + }, + { + "cell_type": "markdown", + "id": "e3e9a092-d290-4050-9780-0dfc9562967e", + "metadata": {}, + "source": [ + "#### Results\n", + "This shows that in the odd seasons from 2014-2022 LeBron James was barely better than Kevin Durant. This reorganizes the data by only including a few seasons." + ] + }, { "cell_type": "markdown", "id": "collectible-puppy", @@ -610,7 +649,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 14, "id": "e40a1730-6c77-425c-81b2-55f2bcd7d5d2", "metadata": {}, "outputs": [ @@ -952,7 +991,7 @@ "PJ Tucker -1.726914" ] }, - "execution_count": 35, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -969,7 +1008,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 15, "id": "8ea17bc0-35b9-4378-a35d-90f9cfd71064", "metadata": {}, "outputs": [ @@ -1036,7 +1075,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 16, "id": "5aca0be4-035f-4de2-a955-b9584221eccd", "metadata": {}, "outputs": [ @@ -1378,7 +1417,7 @@ "Isaiah Thomas -6.412895" ] }, - "execution_count": 37, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -1395,7 +1434,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 17, "id": "afe7a597-ce41-45f5-89f1-b82064088890", "metadata": {}, "outputs": [ @@ -1423,7 +1462,7 @@ "metadata": {}, "source": [ "### Results\n", - "I found that the best defensive player from 2014-2022 was Draymond Green. This makes sense as he has won the Defensive Player Of The Year award and is known primarily for his defense. He is known as one of the best defensive players in the league. I am not surprised to see Draymond Green be the number one ranked defensive player. The three next best defensive players are Anthony Davis, Joakim Noah, and Paul George. These players are also known for their defense, so it makes sense that they are rated so highly. It is interesting to note that 4 of the top 5 players are Power Forwards or Centers which also shows that this could lead to research on whether Power Forwards and Centers generally play the best defense." + "I found that the best defensive player from 2014-2022 was Draymond Green. This makes sense as he has won the Defensive Player Of The Year award and is known primarily for his defense. He is known as one of the best defensive players in the league. I am not surprised to see Draymond Green be the number one ranked defensive player. The four next best defensive players are Joakim Noah, Anthony Davis, Marc Gasol, and Paul George. These players are also known for their defense, so it makes sense that they are rated so highly. It is interesting to note that 4 of the top 5 players are Power Forwards or Centers which also shows that this could lead to research on whether Power Forwards and Centers generally play the best defense." ] }, { @@ -1505,18 +1544,10 @@ "The final poster is attached as the James Berent Flyer.pdf" ] }, - { - "cell_type": "markdown", - "id": "44248208-44a9-47f5-85e9-c61d4b06c9a0", - "metadata": {}, - "source": [ - "# Add Data Structures" - ] - }, { "cell_type": "code", "execution_count": null, - "id": "398f3b13-0813-4052-a43f-68903048ed39", + "id": "785653df-1698-42ce-83ac-e188f75632c7", "metadata": {}, "outputs": [], "source": []