This server is intended for use for Academic Classwork related Git repositories only. Projects/repositories will generally be removed after 6 months following close of the semester. Inactive repositories from previous semester are now being archived when no activity for 365 days. They are renamed and marked as 'archived'. After 90 days in that state they will be removed from the system completely.

Commit c0cbfeb4 authored by henrycwong's avatar henrycwong

clear out NaN's of 2020 set

parent 38b225d1
This diff is collapsed.
This diff is collapsed.
......@@ -796,391 +796,16 @@
},
{
"cell_type": "code",
"execution_count": 164,
"execution_count": 177,
"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>gameid</th>\n",
" <th>url</th>\n",
" <th>side</th>\n",
" <th>team</th>\n",
" <th>champion</th>\n",
" <th>ban1</th>\n",
" <th>ban2</th>\n",
" <th>ban3</th>\n",
" <th>ban4</th>\n",
" <th>ban5</th>\n",
" <th>...</th>\n",
" <th>gdat15</th>\n",
" <th>xpat10</th>\n",
" <th>oppxpat10</th>\n",
" <th>xpdat10</th>\n",
" <th>csat10</th>\n",
" <th>oppcsat10</th>\n",
" <th>csdat10</th>\n",
" <th>csat15</th>\n",
" <th>oppcsat15</th>\n",
" <th>csdat15</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1002440062</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>85</td>\n",
" <td>147</td>\n",
" <td>11</td>\n",
" <td>119</td>\n",
" <td>58</td>\n",
" <td>...</td>\n",
" <td>2387</td>\n",
" <td>18541</td>\n",
" <td>18703</td>\n",
" <td>-162</td>\n",
" <td>341</td>\n",
" <td>374</td>\n",
" <td>-33</td>\n",
" <td>551</td>\n",
" <td>599</td>\n",
" <td>-48</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1002440062</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>61</td>\n",
" <td>114</td>\n",
" <td>28</td>\n",
" <td>15</td>\n",
" <td>103</td>\n",
" <td>...</td>\n",
" <td>-2387</td>\n",
" <td>18703</td>\n",
" <td>18541</td>\n",
" <td>162</td>\n",
" <td>374</td>\n",
" <td>341</td>\n",
" <td>33</td>\n",
" <td>599</td>\n",
" <td>551</td>\n",
" <td>48</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1002440076</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>0</td>\n",
" <td>2</td>\n",
" <td>0</td>\n",
" <td>114</td>\n",
" <td>84</td>\n",
" <td>50</td>\n",
" <td>117</td>\n",
" <td>85</td>\n",
" <td>...</td>\n",
" <td>-1609</td>\n",
" <td>19223</td>\n",
" <td>19671</td>\n",
" <td>-448</td>\n",
" <td>344</td>\n",
" <td>351</td>\n",
" <td>-7</td>\n",
" <td>560</td>\n",
" <td>564</td>\n",
" <td>-4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1002440076</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>0</td>\n",
" <td>147</td>\n",
" <td>27</td>\n",
" <td>11</td>\n",
" <td>33</td>\n",
" <td>35</td>\n",
" <td>...</td>\n",
" <td>1609</td>\n",
" <td>19671</td>\n",
" <td>19223</td>\n",
" <td>448</td>\n",
" <td>351</td>\n",
" <td>344</td>\n",
" <td>7</td>\n",
" <td>564</td>\n",
" <td>560</td>\n",
" <td>4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1002440084</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>0</td>\n",
" <td>4</td>\n",
" <td>0</td>\n",
" <td>95</td>\n",
" <td>15</td>\n",
" <td>17</td>\n",
" <td>114</td>\n",
" <td>4</td>\n",
" <td>...</td>\n",
" <td>836</td>\n",
" <td>19785</td>\n",
" <td>18502</td>\n",
" <td>1283</td>\n",
" <td>352</td>\n",
" <td>354</td>\n",
" <td>-2</td>\n",
" <td>557</td>\n",
" <td>569</td>\n",
" <td>-12</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",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>229</th>\n",
" <td>1002530069</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>111</td>\n",
" <td>121</td>\n",
" <td>83</td>\n",
" <td>19</td>\n",
" <td>119</td>\n",
" <td>...</td>\n",
" <td>939</td>\n",
" <td>17957</td>\n",
" <td>18197</td>\n",
" <td>-240</td>\n",
" <td>315</td>\n",
" <td>313</td>\n",
" <td>2</td>\n",
" <td>485</td>\n",
" <td>468</td>\n",
" <td>17</td>\n",
" </tr>\n",
" <tr>\n",
" <th>230</th>\n",
" <td>1002530071</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>33</td>\n",
" <td>16</td>\n",
" <td>137</td>\n",
" <td>127</td>\n",
" <td>19</td>\n",
" <td>...</td>\n",
" <td>1057</td>\n",
" <td>17927</td>\n",
" <td>18080</td>\n",
" <td>-153</td>\n",
" <td>298</td>\n",
" <td>300</td>\n",
" <td>-2</td>\n",
" <td>480</td>\n",
" <td>485</td>\n",
" <td>-5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>231</th>\n",
" <td>1002530071</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>0</td>\n",
" <td>111</td>\n",
" <td>114</td>\n",
" <td>83</td>\n",
" <td>4</td>\n",
" <td>117</td>\n",
" <td>...</td>\n",
" <td>-1057</td>\n",
" <td>18080</td>\n",
" <td>17927</td>\n",
" <td>153</td>\n",
" <td>300</td>\n",
" <td>298</td>\n",
" <td>2</td>\n",
" <td>485</td>\n",
" <td>480</td>\n",
" <td>5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>232</th>\n",
" <td>1002530072</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>0</td>\n",
" <td>2</td>\n",
" <td>0</td>\n",
" <td>114</td>\n",
" <td>121</td>\n",
" <td>18</td>\n",
" <td>85</td>\n",
" <td>106</td>\n",
" <td>...</td>\n",
" <td>-54</td>\n",
" <td>19715</td>\n",
" <td>18512</td>\n",
" <td>1203</td>\n",
" <td>325</td>\n",
" <td>305</td>\n",
" <td>20</td>\n",
" <td>495</td>\n",
" <td>482</td>\n",
" <td>13</td>\n",
" </tr>\n",
" <tr>\n",
" <th>233</th>\n",
" <td>1002530072</td>\n",
" <td>https://matchhistory.na.leagueoflegends.com/en...</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>111</td>\n",
" <td>33</td>\n",
" <td>83</td>\n",
" <td>75</td>\n",
" <td>19</td>\n",
" <td>...</td>\n",
" <td>54</td>\n",
" <td>18512</td>\n",
" <td>19715</td>\n",
" <td>-1203</td>\n",
" <td>305</td>\n",
" <td>325</td>\n",
" <td>-20</td>\n",
" <td>482</td>\n",
" <td>495</td>\n",
" <td>-13</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>234 rows × 89 columns</p>\n",
"</div>"
],
"text/plain": [
" gameid url side \\\n",
"0 1002440062 https://matchhistory.na.leagueoflegends.com/en... 0 \n",
"1 1002440062 https://matchhistory.na.leagueoflegends.com/en... 1 \n",
"2 1002440076 https://matchhistory.na.leagueoflegends.com/en... 0 \n",
"3 1002440076 https://matchhistory.na.leagueoflegends.com/en... 1 \n",
"4 1002440084 https://matchhistory.na.leagueoflegends.com/en... 0 \n",
".. ... ... ... \n",
"229 1002530069 https://matchhistory.na.leagueoflegends.com/en... 1 \n",
"230 1002530071 https://matchhistory.na.leagueoflegends.com/en... 0 \n",
"231 1002530071 https://matchhistory.na.leagueoflegends.com/en... 1 \n",
"232 1002530072 https://matchhistory.na.leagueoflegends.com/en... 0 \n",
"233 1002530072 https://matchhistory.na.leagueoflegends.com/en... 1 \n",
"\n",
" team champion ban1 ban2 ban3 ban4 ban5 ... gdat15 xpat10 \\\n",
"0 0 0 85 147 11 119 58 ... 2387 18541 \n",
"1 1 0 61 114 28 15 103 ... -2387 18703 \n",
"2 2 0 114 84 50 117 85 ... -1609 19223 \n",
"3 3 0 147 27 11 33 35 ... 1609 19671 \n",
"4 4 0 95 15 17 114 4 ... 836 19785 \n",
".. ... ... ... ... ... ... ... ... ... ... \n",
"229 0 0 111 121 83 19 119 ... 939 17957 \n",
"230 0 0 33 16 137 127 19 ... 1057 17927 \n",
"231 2 0 111 114 83 4 117 ... -1057 18080 \n",
"232 2 0 114 121 18 85 106 ... -54 19715 \n",
"233 0 0 111 33 83 75 19 ... 54 18512 \n",
"\n",
" oppxpat10 xpdat10 csat10 oppcsat10 csdat10 csat15 oppcsat15 \\\n",
"0 18703 -162 341 374 -33 551 599 \n",
"1 18541 162 374 341 33 599 551 \n",
"2 19671 -448 344 351 -7 560 564 \n",
"3 19223 448 351 344 7 564 560 \n",
"4 18502 1283 352 354 -2 557 569 \n",
".. ... ... ... ... ... ... ... \n",
"229 18197 -240 315 313 2 485 468 \n",
"230 18080 -153 298 300 -2 480 485 \n",
"231 17927 153 300 298 2 485 480 \n",
"232 18512 1203 325 305 20 495 482 \n",
"233 19715 -1203 305 325 -20 482 495 \n",
"\n",
" csdat15 \n",
"0 -48 \n",
"1 48 \n",
"2 -4 \n",
"3 4 \n",
"4 -12 \n",
".. ... \n",
"229 17 \n",
"230 -5 \n",
"231 5 \n",
"232 13 \n",
"233 -13 \n",
"\n",
"[234 rows x 89 columns]"
]
},
"execution_count": 164,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"df.fillna(0)"
"df = df.fillna(0)"
]
},
{
"cell_type": "code",
"execution_count": 165,
"execution_count": 178,
"metadata": {},
"outputs": [
{
......@@ -1232,16 +857,16 @@
" 37 airdrakes 234 non-null int64 \n",
" 38 elders 234 non-null int64 \n",
" 39 oppelders 234 non-null int64 \n",
" 40 herald 212 non-null float64\n",
" 41 heraldtime 212 non-null float64\n",
" 40 herald 234 non-null float64\n",
" 41 heraldtime 234 non-null float64\n",
" 42 ft 234 non-null int64 \n",
" 43 fttime 234 non-null float64\n",
" 44 firstmidouter 234 non-null int64 \n",
" 45 firsttothreetowers 234 non-null int64 \n",
" 46 teamtowerkills 234 non-null int64 \n",
" 47 opptowerkills 234 non-null int64 \n",
" 48 fbaron 232 non-null float64\n",
" 49 fbarontime 232 non-null float64\n",
" 48 fbaron 234 non-null float64\n",
" 49 fbarontime 234 non-null float64\n",
" 50 teambaronkills 234 non-null int64 \n",
" 51 oppbaronkills 234 non-null int64 \n",
" 52 dmgtochamps 234 non-null int64 \n",
......@@ -1292,7 +917,7 @@
},
{
"cell_type": "code",
"execution_count": 168,
"execution_count": 179,
"metadata": {},
"outputs": [],
"source": [
......@@ -1301,7 +926,7 @@
},
{
"cell_type": "code",
"execution_count": 171,
"execution_count": 180,
"metadata": {},
"outputs": [],
"source": [
......@@ -1310,7 +935,7 @@
},
{
"cell_type": "code",
"execution_count": 173,
"execution_count": 181,
"metadata": {},
"outputs": [],
"source": [
......@@ -1319,7 +944,7 @@
},
{
"cell_type": "code",
"execution_count": 174,
"execution_count": 182,
"metadata": {},
"outputs": [],
"source": [
......@@ -1331,7 +956,7 @@
},
{
"cell_type": "code",
"execution_count": 175,
"execution_count": 183,
"metadata": {},
"outputs": [],
"source": [
......@@ -1340,7 +965,7 @@
},
{
"cell_type": "code",
"execution_count": 176,
"execution_count": 184,
"metadata": {},
"outputs": [
{
......@@ -1359,7 +984,7 @@
"oppelementals -0.642097\n",
"teamtowerkills 0.875190\n",
"opptowerkills -0.875190\n",
"fbaron 0.706897\n",
"fbaron 0.700880\n",
"teambaronkills 0.641161\n",
"oppbaronkills -0.641161\n",
"visiblewardclearrate 0.532841\n",
......@@ -1369,7 +994,7 @@
"dtype: float64"
]
},
"execution_count": 176,
"execution_count": 184,
"metadata": {},
"output_type": "execute_result"
}
......@@ -1380,7 +1005,7 @@
},
{
"cell_type": "code",
"execution_count": 169,
"execution_count": 185,
"metadata": {},
"outputs": [],
"source": [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment