Skip to content

Commit 3bfe256

Browse files
committed
Updated lesson 26 activity and added solution
1 parent 44fbbf5 commit 3bfe256

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

notebooks/unit4/lesson_26/Lesson_26_activity.ipynb

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,8 @@
8787
"# Define the label\n",
8888
"label = # YOUR CODE HERE\n",
8989
"\n",
90-
"# Define numerical features to apply IQR clipping\n",
91-
"numerical_features = # YOUR CODE HERE\n",
92-
"\n",
93-
"# Define ordinal features to encode\n",
94-
"ordinal_features = # YOUR CODE HERE\n",
95-
"\n",
96-
"# Define ordinal categories in order\n",
97-
"education_categories = # YOUR CODE HERE\n",
98-
"income_categories = # YOUR CODE HERE\n",
99-
"\n",
100-
"# Define features for one-hot encoding\n",
101-
"nominal_features = # YOUR CODE HERE\n",
90+
"# Define numerical, ordinal and nominal features\n",
91+
"# YOUR CODE HERE\n",
10292
"\n",
10393
"# Complete feature list\n",
10494
"features = # YOUR CODE HERE"
@@ -214,9 +204,7 @@
214204
"metadata": {},
215205
"outputs": [],
216206
"source": [
217-
"# YOUR CODE HERE: create and fit OneHotEncoder, transform features, and concatenate back to dataframes\n",
218-
"# Remember to set the index of encoded_features_df to match training_df.index and testing_df.index\n",
219-
"# Don't forget to reset_index(drop=True) after concatenation"
207+
"# YOUR CODE HERE: create and fit OneHotEncoder, transform features, and concatenate back to dataframes"
220208
]
221209
},
222210
{

0 commit comments

Comments
 (0)