Skip to content

Commit 045b97c

Browse files
committed
Fix 02 solutions
1 parent 47cc2d1 commit 045b97c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: solutions/Ground-02.ipynb

+6-5
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@
177177
{
178178
"cell_type": "code",
179179
"execution_count": null,
180-
"metadata": {},
180+
"metadata": {
181+
"collapsed": true
182+
},
181183
"outputs": [],
182184
"source": [
183185
"# now that we know the Ground version of the dataset, let's also inspect the schema of that dataset\n",
@@ -320,10 +322,9 @@
320322
"import numpy as np\n",
321323
"\n",
322324
"def clean(df):\n",
323-
" temp = df[\"col1\"].copy()\n",
324-
" df[\"col1\"] = df[\"col2\"]\n",
325-
" df[\"col2\"] = temp\n",
326-
" # your solution here"
325+
" temp = df[\"code\"].copy()\n",
326+
" df[\"code\"] = df[\"country\"]\n",
327+
" df[\"country\"] = temp"
327328
]
328329
},
329330
{

0 commit comments

Comments
 (0)