Skip to content

Commit

Permalink
Updated slides session 14
Browse files Browse the repository at this point in the history
  • Loading branch information
abjer committed Aug 21, 2018
1 parent abf65a5 commit e00955a
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions material/session_14/lecture_14.ipynb
Expand Up @@ -112,7 +112,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 19,
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -391,29 +391,26 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 20,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Criminal 0 1\n",
"Parents together Parents unemployed From Jutland \n",
"0 0 0 1.0 0.0\n",
" 1 0 0.0 2.0\n",
" 1 0.0 2.0\n",
"1 0 0 5.0 0.0\n",
" 1 2.0 0.0\n",
" 1 0 0.0 1.0\n",
" 1 2.0 0.0\n"
"Criminal 0 1\n",
"Parents together Parents unemployed \n",
"0 0 1.0 0.0\n",
" 1 0.0 4.0\n",
"1 0 7.0 0.0\n",
" 1 2.0 1.0\n"
]
}
],
"source": [
"my_split = df\\\n",
".groupby(['Parents together', \n",
" 'Parents unemployed','From Jutland'])\\\n",
" 'Parents unemployed'])\\\n",
".Criminal\\\n",
".value_counts()\\\n",
".unstack(level=-1)\\\n",
Expand Down Expand Up @@ -941,6 +938,7 @@
"\n",
"\n",
"@ online.\n",
"- DataCamp\n",
"- MIT open courseware, coursera, edX, etc."
]
},
Expand Down

0 comments on commit e00955a

Please sign in to comment.