Skip to content

Commit 64a6986

Browse files
committed
hw2 code update
1 parent 07a7f7b commit 64a6986

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

.ipynb_checkpoints/HW 2 - Titanic data analysis-checkpoint.ipynb

-15
Original file line numberDiff line numberDiff line change
@@ -1217,21 +1217,6 @@
12171217
"train_df.shape, test_df.shape"
12181218
]
12191219
},
1220-
{
1221-
"cell_type": "code",
1222-
"execution_count": 14,
1223-
"metadata": {},
1224-
"outputs": [],
1225-
"source": [
1226-
"# # create IsAlone feature using FamilySize feature\n",
1227-
"\n",
1228-
"# for data in combine_df:\n",
1229-
"# data['IsAlone'] = 0\n",
1230-
"# data.loc[data['FamilySize'] == 1, 'IsAlone'] = 1\n",
1231-
"\n",
1232-
"# train_df[['IsAlone', 'Survived']].groupby(['IsAlone'], as_index=False).mean()"
1233-
]
1234-
},
12351220
{
12361221
"cell_type": "markdown",
12371222
"metadata": {},

HW 2 - Titanic data analysis.ipynb

-15
Original file line numberDiff line numberDiff line change
@@ -1217,21 +1217,6 @@
12171217
"train_df.shape, test_df.shape"
12181218
]
12191219
},
1220-
{
1221-
"cell_type": "code",
1222-
"execution_count": 14,
1223-
"metadata": {},
1224-
"outputs": [],
1225-
"source": [
1226-
"# # create IsAlone feature using FamilySize feature\n",
1227-
"\n",
1228-
"# for data in combine_df:\n",
1229-
"# data['IsAlone'] = 0\n",
1230-
"# data.loc[data['FamilySize'] == 1, 'IsAlone'] = 1\n",
1231-
"\n",
1232-
"# train_df[['IsAlone', 'Survived']].groupby(['IsAlone'], as_index=False).mean()"
1233-
]
1234-
},
12351220
{
12361221
"cell_type": "markdown",
12371222
"metadata": {},

0 commit comments

Comments
 (0)