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 732a4d04 authored by henrycwong's avatar henrycwong

clean up NaN values in naLCSTeam file

parent 753a0f2c
......@@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 127,
"execution_count": 140,
"metadata": {},
"outputs": [],
"source": [
......@@ -30,7 +30,7 @@
},
{
"cell_type": "code",
"execution_count": 128,
"execution_count": 141,
"metadata": {},
"outputs": [],
"source": [
......@@ -39,7 +39,7 @@
},
{
"cell_type": "code",
"execution_count": 129,
"execution_count": 142,
"metadata": {},
"outputs": [
{
......@@ -237,7 +237,7 @@
"[5 rows x 98 columns]"
]
},
"execution_count": 129,
"execution_count": 142,
"metadata": {},
"output_type": "execute_result"
}
......@@ -248,7 +248,7 @@
},
{
"cell_type": "code",
"execution_count": 130,
"execution_count": 143,
"metadata": {},
"outputs": [],
"source": [
......@@ -276,7 +276,7 @@
},
{
"cell_type": "code",
"execution_count": 131,
"execution_count": 144,
"metadata": {},
"outputs": [],
"source": [
......@@ -285,7 +285,7 @@
},
{
"cell_type": "code",
"execution_count": 132,
"execution_count": 145,
"metadata": {},
"outputs": [],
"source": [
......@@ -294,7 +294,7 @@
},
{
"cell_type": "code",
"execution_count": 133,
"execution_count": 146,
"metadata": {},
"outputs": [],
"source": [
......@@ -304,7 +304,7 @@
},
{
"cell_type": "code",
"execution_count": 134,
"execution_count": 147,
"metadata": {},
"outputs": [
{
......@@ -313,7 +313,7 @@
"array([0], dtype=int64)"
]
},
"execution_count": 134,
"execution_count": 147,
"metadata": {},
"output_type": "execute_result"
}
......@@ -326,7 +326,7 @@
},
{
"cell_type": "code",
"execution_count": 114,
"execution_count": 148,
"metadata": {},
"outputs": [
{
......@@ -342,7 +342,7 @@
"array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype=int64)"
]
},
"execution_count": 114,
"execution_count": 148,
"metadata": {},
"output_type": "execute_result"
}
......@@ -357,7 +357,7 @@
},
{
"cell_type": "code",
"execution_count": 138,
"execution_count": 149,
"metadata": {},
"outputs": [],
"source": [
......@@ -368,7 +368,7 @@
},
{
"cell_type": "code",
"execution_count": 115,
"execution_count": 150,
"metadata": {},
"outputs": [],
"source": [
......@@ -378,7 +378,7 @@
},
{
"cell_type": "code",
"execution_count": 116,
"execution_count": 151,
"metadata": {},
"outputs": [
{
......@@ -402,7 +402,7 @@
},
{
"cell_type": "code",
"execution_count": 56,
"execution_count": 152,
"metadata": {},
"outputs": [],
"source": [
......@@ -415,7 +415,7 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": 153,
"metadata": {},
"outputs": [],
"source": [
......@@ -428,7 +428,7 @@
},
{
"cell_type": "code",
"execution_count": 59,
"execution_count": 154,
"metadata": {},
"outputs": [],
"source": [
......@@ -440,7 +440,7 @@
},
{
"cell_type": "code",
"execution_count": 60,
"execution_count": 155,
"metadata": {},
"outputs": [
{
......@@ -453,7 +453,7 @@
" 6, 48, 32, 47], dtype=int64)"
]
},
"execution_count": 60,
"execution_count": 155,
"metadata": {},
"output_type": "execute_result"
}
......@@ -465,7 +465,7 @@
},
{
"cell_type": "code",
"execution_count": 61,
"execution_count": 156,
"metadata": {},
"outputs": [],
"source": [
......@@ -474,7 +474,7 @@
},
{
"cell_type": "code",
"execution_count": 62,
"execution_count": 157,
"metadata": {},
"outputs": [
{
......@@ -672,7 +672,7 @@
"[5 rows x 89 columns]"
]
},
"execution_count": 62,
"execution_count": 157,
"metadata": {},
"output_type": "execute_result"
}
......@@ -681,6 +681,118 @@
"df.head()"
]
},
{
"cell_type": "code",
"execution_count": 158,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 234 entries, 0 to 233\n",
"Data columns (total 89 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 gameid 234 non-null int32 \n",
" 1 url 234 non-null object \n",
" 2 side 234 non-null int64 \n",
" 3 team 234 non-null int64 \n",
" 4 champion 234 non-null int64 \n",
" 5 ban1 234 non-null object \n",
" 6 ban2 234 non-null object \n",
" 7 ban3 234 non-null object \n",
" 8 ban4 234 non-null int64 \n",
" 9 ban5 234 non-null int64 \n",
" 10 gamelength 234 non-null float64\n",
" 11 result 234 non-null int64 \n",
" 12 k 234 non-null int64 \n",
" 13 d 234 non-null int64 \n",
" 14 a 234 non-null int64 \n",
" 15 teamkills 234 non-null int64 \n",
" 16 teamdeaths 234 non-null int64 \n",
" 17 doubles 234 non-null int32 \n",
" 18 triples 234 non-null int32 \n",
" 19 quadras 234 non-null int32 \n",
" 20 pentas 234 non-null int32 \n",
" 21 fb 234 non-null int32 \n",
" 22 fbassist 234 non-null int32 \n",
" 23 fbvictim 234 non-null int32 \n",
" 24 fbtime 234 non-null float64\n",
" 25 kpm 234 non-null float64\n",
" 26 okpm 234 non-null float64\n",
" 27 ckpm 234 non-null float64\n",
" 28 fd 234 non-null int32 \n",
" 29 fdtime 234 non-null float64\n",
" 30 teamdragkills 234 non-null int64 \n",
" 31 oppdragkills 234 non-null int64 \n",
" 32 elementals 234 non-null int64 \n",
" 33 oppelementals 234 non-null int64 \n",
" 34 firedrakes 234 non-null int64 \n",
" 35 waterdrakes 234 non-null int64 \n",
" 36 earthdrakes 234 non-null int64 \n",
" 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",
" 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",
" 50 teambaronkills 234 non-null int64 \n",
" 51 oppbaronkills 234 non-null int64 \n",
" 52 dmgtochamps 234 non-null int64 \n",
" 53 dmgtochampsperminute 234 non-null float64\n",
" 54 dmgshare 234 non-null float64\n",
" 55 earnedgoldshare 234 non-null float64\n",
" 56 wards 234 non-null int64 \n",
" 57 wpm 234 non-null float64\n",
" 58 wardshare 234 non-null int64 \n",
" 59 wardkills 234 non-null int64 \n",
" 60 wcpm 234 non-null float64\n",
" 61 visionwards 234 non-null int64 \n",
" 62 visionwardbuys 234 non-null int64 \n",
" 63 visiblewardclearrate 234 non-null float64\n",
" 64 invisiblewardclearrate 234 non-null float64\n",
" 65 totalgold 234 non-null int64 \n",
" 66 earnedgpm 234 non-null float64\n",
" 67 goldspent 234 non-null int64 \n",
" 68 gspd 234 non-null float64\n",
" 69 minionkills 234 non-null int64 \n",
" 70 monsterkills 234 non-null int64 \n",
" 71 monsterkillsownjungle 234 non-null int64 \n",
" 72 monsterkillsenemyjungle 234 non-null int64 \n",
" 73 cspm 234 non-null float64\n",
" 74 goldat10 234 non-null int64 \n",
" 75 oppgoldat10 234 non-null int64 \n",
" 76 gdat10 234 non-null int64 \n",
" 77 goldat15 234 non-null int64 \n",
" 78 oppgoldat15 234 non-null int64 \n",
" 79 gdat15 234 non-null int64 \n",
" 80 xpat10 234 non-null int64 \n",
" 81 oppxpat10 234 non-null int64 \n",
" 82 xpdat10 234 non-null int64 \n",
" 83 csat10 234 non-null int64 \n",
" 84 oppcsat10 234 non-null int64 \n",
" 85 csdat10 234 non-null int64 \n",
" 86 csat15 234 non-null int64 \n",
" 87 oppcsat15 234 non-null int64 \n",
" 88 csdat15 234 non-null int64 \n",
"dtypes: float64(21), int32(9), int64(55), object(4)\n",
"memory usage: 154.6+ KB\n"
]
}
],
"source": [
"df.info()"
]
},
{
"cell_type": "code",
"execution_count": 63,
......
{"Cloud9": 0, "Team Liquid": 1, "Counter Logic Gaming": 2, "Dignitas": 3, "100 Thieves": 4, "Golden Guardians": 5, "Immortals": 6, "FlyQuest": 7, "Evil Geniuses": 8, "Team SoloMid": 9}
\ No newline at end of file
{"Team Liquid": 0, "Team SoloMid": 1, "100 Thieves": 2, "OpTic Gaming": 3, "Clutch Gaming": 4, "Golden Guardians": 5, "Echo Fox": 6, "FlyQuest": 7, "Counter Logic Gaming": 8, "Cloud9": 9}
\ No newline at end of file
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