Skip to content

Commit bd50894

Browse files
committed
Minor fix in recipe 8.2.
1 parent d341a9a commit bd50894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/chapter08_ml/02_titanic.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:0d6b1522cdbb0c5a52efd1123fe34763d5fcd2abb8f3450b7c4f4d3baf164af4"
4+
"signature": "sha256:2acac914c799bf86aab2e831a8397628cdf323d08ac02a97db61a4ad017625c0"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -101,7 +101,7 @@
101101
"cell_type": "code",
102102
"collapsed": false,
103103
"input": [
104-
"data = train[['Sex', 'Age', 'Pclass', 'Survived']]\n",
104+
"data = train[['Sex', 'Age', 'Pclass', 'Survived']].copy()\n",
105105
"data['Sex'] = data['Sex'] == 'female'\n",
106106
"data = data.dropna()"
107107
],

0 commit comments

Comments
 (0)