Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
takumiohym committed Jun 4, 2024
1 parent 6216a5e commit ba0067e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@
"<pre style=\"color:white\">\n",
"twins_etc = dict(zip([1,2,3,4,5],\n",
" [\"Single(1)\", \"Twins(2)\", \"Triplets(3)\", \"Quadruplets(4)\", \"Quintuplets(5)\"]))\n",
"df[\"plurality\"] = df[\"plurality\"].apply(str)\n",
"df[\"plurality\"].replace(twins_etc, inplace=True)\n",
"</pre>\n",
"Lack of ultrasound:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@
" ],\n",
" )\n",
" )\n",
" df[\"plurality\"] = df[\"plurality\"].apply(str)\n",
" df[\"plurality\"].replace(twins_etc, inplace=True)\n",
"\n",
" # Clone data and mask certain columns to simulate lack of ultrasound\n",
Expand Down

0 comments on commit ba0067e

Please sign in to comment.