From 32f3aada9d6f136fe930e36a05e255f0c4d14824 Mon Sep 17 00:00:00 2001 From: Tiago Mateus Date: Sun, 19 Nov 2023 18:45:39 +0000 Subject: [PATCH] lab done --- your-code/challenge-1.ipynb | 300 +++++++++++++++-- your-code/challenge-2.ipynb | 626 ++++++++++++++++++++++++++++++++++-- 2 files changed, 875 insertions(+), 51 deletions(-) diff --git a/your-code/challenge-1.ipynb b/your-code/challenge-1.ipynb index c1bb43d..11c7857 100755 --- a/your-code/challenge-1.ipynb +++ b/your-code/challenge-1.ipynb @@ -19,12 +19,13 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 19, "metadata": {}, "outputs": [], "source": [ "# Import libraries\n", - "import pandas as pd" + "import pandas as pd\n", + "import scipy.stats as st" ] }, { @@ -38,11 +39,154 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 45, "metadata": {}, - "outputs": [], + "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", + "
#NameType 1Type 2TotalHPAttackDefenseSp. AtkSp. DefSpeedGenerationLegendary
01BulbasaurGrassPoison3184549496565451False
12IvysaurGrassPoison4056062638080601False
23VenusaurGrassPoison525808283100100801False
33VenusaurMega VenusaurGrassPoison62580100123122120801False
44CharmanderFireNaN3093952436050651False
\n", + "
" + ], + "text/plain": [ + " # Name Type 1 Type 2 Total HP Attack Defense \\\n", + "0 1 Bulbasaur Grass Poison 318 45 49 49 \n", + "1 2 Ivysaur Grass Poison 405 60 62 63 \n", + "2 3 Venusaur Grass Poison 525 80 82 83 \n", + "3 3 VenusaurMega Venusaur Grass Poison 625 80 100 123 \n", + "4 4 Charmander Fire NaN 309 39 52 43 \n", + "\n", + " Sp. Atk Sp. Def Speed Generation Legendary \n", + "0 65 65 45 1 False \n", + "1 80 80 60 1 False \n", + "2 100 100 80 1 False \n", + "3 122 120 80 1 False \n", + "4 60 50 65 1 False " + ] + }, + "execution_count": 45, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# Your code here:\n" + "pokemon = pd.read_csv('Pokemon.csv')\n", + "pokemon.head()" ] }, { @@ -58,11 +202,11 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 31, "metadata": {}, "outputs": [], "source": [ - "def t_test_features(s1, s2, features=['HP', 'Attack', 'Defense', 'Sp. Atk', 'Sp. Def', 'Speed', 'Total']):\n", + "def t_test_features(s1,s2,features=['HP', 'Attack', 'Defense', 'Sp. Atk', 'Sp. Def', 'Speed', 'Total']):\n", " \"\"\"Test means of a feature set of two samples\n", " \n", " Args:\n", @@ -75,7 +219,9 @@ " \"\"\"\n", " results = {}\n", "\n", - " # Your code here\n", + " for att in features:\n", + " p_value = st.ttest_rel(s1[att], s2[att])[1]\n", + " results[att] = p_value\n", " \n", " return results" ] @@ -101,11 +247,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 34, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "{'HP': 6.948290100191796e-10,\n", + " 'Attack': 1.8591083768634616e-05,\n", + " 'Defense': 2.30424576362066e-05,\n", + " 'Sp. Atk': 4.4426998362013056e-11,\n", + " 'Sp. Def': 5.639782854573663e-10,\n", + " 'Speed': 3.6025660073304116e-08,\n", + " 'Total': 3.8788636547103485e-16}" + ] + }, + "execution_count": 34, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# Your code here\n" + "# setting the sample\n", + "s1 = pokemon[pokemon['Legendary']==True].sample(50)\n", + "s2 = pokemon[pokemon['Legendary']==False].sample(50)\n", + "\n", + "#testing\n", + "t_test_features(s1,s2)" ] }, { @@ -121,7 +289,7 @@ "metadata": {}, "outputs": [], "source": [ - "# Your comment here" + "# yes, they ave since none of the attributes comparison has a pvalue > 0.05. so, the difference is significant" ] }, { @@ -133,11 +301,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 35, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "{'HP': 0.81547401703314,\n", + " 'Attack': 0.561966064612802,\n", + " 'Defense': 0.5339371713424348,\n", + " 'Sp. Atk': 0.3752482668104177,\n", + " 'Sp. Def': 0.5754809287447944,\n", + " 'Speed': 0.04118287618482037,\n", + " 'Total': 0.5480692457351427}" + ] + }, + "execution_count": 35, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# Your code here\n" + "# setting the sample\n", + "s1 = pokemon[pokemon['Generation']==1].sample(50)\n", + "s2 = pokemon[pokemon['Generation']==2].sample(50)\n", + "\n", + "#testing\n", + "t_test_features(s1,s2)" ] }, { @@ -153,7 +343,7 @@ "metadata": {}, "outputs": [], "source": [ - "# Your comment here" + "# the majority of the attributes dont have a significant difference apart from the speed." ] }, { @@ -165,11 +355,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 55, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "{'HP': 0.5077689874165239,\n", + " 'Attack': 0.22690817462035381,\n", + " 'Defense': 0.0740266358797781,\n", + " 'Sp. Atk': 0.08530679091420888,\n", + " 'Sp. Def': 0.07418633939889106,\n", + " 'Speed': 0.10786388882229356,\n", + " 'Total': 0.03966321700806898}" + ] + }, + "execution_count": 55, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# Your code here\n" + "# setting the sample\n", + "s1 = pokemon[pokemon['Type 2'].isnull()].sample(50)\n", + "s2 = pokemon[pokemon['Type 2'].notnull()].sample(50)\n", + "\n", + "#testing\n", + "t_test_features(s1,s2)" ] }, { @@ -181,11 +393,13 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 56, "metadata": {}, "outputs": [], "source": [ - "# Your comment here" + "# very differente results from attribute to attribute, difference not significant in hp attack and speed\n", + "# not different but for a small margin on deffense, sp atk, stp def \n", + "# different on total" ] }, { @@ -199,11 +413,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 59, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{'Sp. Atk': 0.49454639205431317, 'Sp. Def': 0.4009246791330642}\n", + "{'Attack': 0.7882471410648832, 'Defense': 0.41931156738395425}\n" + ] + } + ], "source": [ - "# Your code here\n" + "##1. sp attack vs sp defense\n", + "#setting the sample\n", + "s1 = pokemon.sample(50)\n", + "s2 = pokemon.sample(50)\n", + "\n", + "#testing\n", + "print(t_test_features(s1,s2, features = ['Sp. Atk', 'Sp. Def']))\n", + "\n", + "##2. atk and def\n", + "s1 = pokemon.sample(50)\n", + "s2 = pokemon.sample(50)\n", + "\n", + "#testing\n", + "print(t_test_features(s1,s2, features = ['Attack', 'Defense']))" ] }, { @@ -215,17 +451,25 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 60, "metadata": {}, "outputs": [], "source": [ - "# Your comment here" + "# attack is the attribute that is more similar among all pokemons\n", + "# the rest of the 3 are not significantly different overall but not as much as attack" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -239,7 +483,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.10.9" } }, "nbformat": 4, diff --git a/your-code/challenge-2.ipynb b/your-code/challenge-2.ipynb index 1f0e335..fe814b3 100755 --- a/your-code/challenge-2.ipynb +++ b/your-code/challenge-2.ipynb @@ -17,21 +17,166 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# Import libraries\n", - "import pandas as pd" + "import pandas as pd\n", + "import scipy.stats as st" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 28, "metadata": {}, - "outputs": [], + "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", + "
#NameType 1Type 2TotalHPAttackDefenseSp. AtkSp. DefSpeedGenerationLegendary
01BulbasaurGrassPoison3184549496565451False
12IvysaurGrassPoison4056062638080601False
23VenusaurGrassPoison525808283100100801False
33VenusaurMega VenusaurGrassPoison62580100123122120801False
44CharmanderFireNaN3093952436050651False
\n", + "
" + ], + "text/plain": [ + " # Name Type 1 Type 2 Total HP Attack Defense \\\n", + "0 1 Bulbasaur Grass Poison 318 45 49 49 \n", + "1 2 Ivysaur Grass Poison 405 60 62 63 \n", + "2 3 Venusaur Grass Poison 525 80 82 83 \n", + "3 3 VenusaurMega Venusaur Grass Poison 625 80 100 123 \n", + "4 4 Charmander Fire NaN 309 39 52 43 \n", + "\n", + " Sp. Atk Sp. Def Speed Generation Legendary \n", + "0 65 65 45 1 False \n", + "1 80 80 60 1 False \n", + "2 100 100 80 1 False \n", + "3 122 120 80 1 False \n", + "4 60 50 65 1 False " + ] + }, + "execution_count": 28, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# Load the data:\n" + "# Load the data:\n", + "pokemon = pd.read_csv('Pokemon.csv')\n", + "pokemon.head()" ] }, { @@ -58,14 +203,48 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "18\n" + ] + }, + { + "data": { + "text/plain": [ + "['Grass',\n", + " 'Fire',\n", + " 'Water',\n", + " 'Bug',\n", + " 'Normal',\n", + " 'Poison',\n", + " 'Electric',\n", + " 'Ground',\n", + " 'Fairy',\n", + " 'Fighting',\n", + " 'Psychic',\n", + " 'Rock',\n", + " 'Ghost',\n", + " 'Ice',\n", + " 'Dragon',\n", + " 'Dark',\n", + " 'Steel',\n", + " 'Flying']" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# Your code here\n", - "\n", - "\n", - "len(unique_types) # you should see 19" + "unique_types1 = list(pokemon['Type 1'].unique())\n", + "print(len(unique_types1)) # you should see 19\n", + "unique_types1" ] }, { @@ -85,15 +264,405 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "[421.14285714285717,\n", + " 458.0769230769231,\n", + " 430.45535714285717,\n", + " 378.92753623188406,\n", + " 401.68367346938777,\n", + " 399.14285714285717,\n", + " 443.40909090909093,\n", + " 437.5,\n", + " 413.1764705882353,\n", + " 416.44444444444446,\n", + " 475.94736842105266,\n", + " 453.75,\n", + " 439.5625,\n", + " 433.4583333333333,\n", + " 550.53125,\n", + " 445.741935483871,\n", + " 487.7037037037037,\n", + " 485.0]" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "pokemon_totals = []\n", "\n", - "# Your code here\n", - "\n", - "len(pokemon_totals) # you should see 18" + "for poketype in unique_types1:\n", + " pokemon_totals.append(pokemon[pokemon['Type 1'] == poketype]['Total'].mean())\n", + " \n", + "pokemon_totals" + ] + }, + { + "cell_type": "code", + "execution_count": 58, + "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", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Type 1BugDarkDragonElectricFairyFightingFireFlyingGhostGrassGroundIceNormalPoisonPsychicRockSteelWater
type count
0195.0525.0300.0320.0323.0305.0309.0580.0310.0318.0300.0455.0251.0288.0310.0300.0510.0314.0
1205.0405.0420.0485.0483.0455.0405.0580.0405.0405.0450.0580.0349.0438.0400.0390.0610.0405.0
2395.0430.0600.0325.0218.0305.0534.0245.0500.0525.0265.0250.0479.0275.0500.0495.0465.0530.0
3195.0330.0490.0465.0245.0405.0634.0535.0600.0625.0405.0450.0579.0365.0590.0385.0380.0630.0
4205.0500.0590.0330.0405.0505.0634.0NaN435.0320.0320.0330.0253.0505.0328.0355.0480.0320.0
.........................................................
107NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN314.0
108NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN405.0
109NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN530.0
110NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN330.0
111NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN500.0
\n", + "

112 rows × 18 columns

\n", + "
" + ], + "text/plain": [ + "Type 1 Bug Dark Dragon Electric Fairy Fighting Fire Flying \\\n", + "type count \n", + "0 195.0 525.0 300.0 320.0 323.0 305.0 309.0 580.0 \n", + "1 205.0 405.0 420.0 485.0 483.0 455.0 405.0 580.0 \n", + "2 395.0 430.0 600.0 325.0 218.0 305.0 534.0 245.0 \n", + "3 195.0 330.0 490.0 465.0 245.0 405.0 634.0 535.0 \n", + "4 205.0 500.0 590.0 330.0 405.0 505.0 634.0 NaN \n", + "... ... ... ... ... ... ... ... ... \n", + "107 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "108 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "109 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "110 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "111 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "\n", + "Type 1 Ghost Grass Ground Ice Normal Poison Psychic Rock \\\n", + "type count \n", + "0 310.0 318.0 300.0 455.0 251.0 288.0 310.0 300.0 \n", + "1 405.0 405.0 450.0 580.0 349.0 438.0 400.0 390.0 \n", + "2 500.0 525.0 265.0 250.0 479.0 275.0 500.0 495.0 \n", + "3 600.0 625.0 405.0 450.0 579.0 365.0 590.0 385.0 \n", + "4 435.0 320.0 320.0 330.0 253.0 505.0 328.0 355.0 \n", + "... ... ... ... ... ... ... ... ... \n", + "107 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "108 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "109 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "110 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "111 NaN NaN NaN NaN NaN NaN NaN NaN \n", + "\n", + "Type 1 Steel Water \n", + "type count \n", + "0 510.0 314.0 \n", + "1 610.0 405.0 \n", + "2 465.0 530.0 \n", + "3 380.0 630.0 \n", + "4 480.0 320.0 \n", + "... ... ... \n", + "107 NaN 314.0 \n", + "108 NaN 405.0 \n", + "109 NaN 530.0 \n", + "110 NaN 330.0 \n", + "111 NaN 500.0 \n", + "\n", + "[112 rows x 18 columns]" + ] + }, + "execution_count": 58, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "pokemon['type count'] = pokemon.groupby('Type 1').cumcount()\n", + "pokemon_pivot = pokemon.pivot(index='type count', columns='Type 1', values='Total')\n", + "pokemon_pivot" ] }, { @@ -111,11 +680,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 66, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "F_onewayResult(statistic=4.638767481660551, pvalue=2.077215448842098e-09)" + ] + }, + "execution_count": 66, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# Your code here\n" + "st.f_oneway(pokemon_pivot['Bug'].dropna(), pokemon_pivot['Dark'].dropna(),pokemon_pivot['Dragon'].dropna(),pokemon_pivot['Electric'].dropna(),pokemon_pivot['Fairy'].dropna(),pokemon_pivot['Fighting'].dropna(),pokemon_pivot['Fire'].dropna(),pokemon_pivot['Flying'].dropna(),pokemon_pivot['Ghost'].dropna(),pokemon_pivot['Grass'].dropna(),pokemon_pivot['Ground'].dropna(),pokemon_pivot['Ice'].dropna(),pokemon_pivot['Normal'].dropna(),pokemon_pivot['Poison'].dropna(),pokemon_pivot['Psychic'].dropna(),pokemon_pivot['Rock'].dropna(),pokemon_pivot['Steel'].dropna(),pokemon_pivot['Water'].dropna())" ] }, { @@ -127,17 +707,17 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 67, "metadata": {}, "outputs": [], "source": [ - "# Your comment here" + "# yes, it is. the null hypothesis is to be rejected" ] } ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -151,7 +731,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.10.9" } }, "nbformat": 4,