Skip to content

Commit ba0067e

Browse files
committed
Fix type error
1 parent 6216a5e commit ba0067e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

notebooks/end-to-end-structured/labs/4a_sample_babyweight.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@
618618
"<pre style=\"color:white\">\n",
619619
"twins_etc = dict(zip([1,2,3,4,5],\n",
620620
" [\"Single(1)\", \"Twins(2)\", \"Triplets(3)\", \"Quadruplets(4)\", \"Quintuplets(5)\"]))\n",
621+
"df[\"plurality\"] = df[\"plurality\"].apply(str)\n",
621622
"df[\"plurality\"].replace(twins_etc, inplace=True)\n",
622623
"</pre>\n",
623624
"Lack of ultrasound:\n",

notebooks/end-to-end-structured/solutions/4a_sample_babyweight.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@
627627
" ],\n",
628628
" )\n",
629629
" )\n",
630+
" df[\"plurality\"] = df[\"plurality\"].apply(str)\n",
630631
" df[\"plurality\"].replace(twins_etc, inplace=True)\n",
631632
"\n",
632633
" # Clone data and mask certain columns to simulate lack of ultrasound\n",

0 commit comments

Comments
 (0)