You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5. What is the primary purpose of `train_test_split`in Scikit-learn?<br>
227
219
a) To combine two different datasets into one.<br>
228
220
b) To separate features from the target variable within a single dataset.<br>
@@ -231,16 +223,13 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
231
223
*(Answer: (2) :eyes:)*
232
224
{ .annotate }
233
225
234
-
<span class="annotate">(2)</span><ol><li>when not possible</li></ol>
235
-
236
226
6. If you want to create a scatter plot in Python to visualize the relationship between 'Height'and'Weight' columns in a Pandas DataFrame `df`, which line of code is most appropriate using Seaborn?<br>
237
227
a) `sns.histplot(data=df, x='Height', y='Weight')`<br>
238
228
b) `sns.boxplot(data=df, x='Height', y='Weight')`<br>
239
229
c) `sns.scatterplot(data=df, x='Height', y='Weight')`<br>
240
230
d) `df.plot(kind='scatter', x='Height', y='Weight')` (This is Pandas plotting, not Seaborn directly)<br>
241
231
*(Answer: (2) :eyes:)*
242
232
{ .annotate }
243
-
<span class="annotate">(2)</span><ol><li>when not possible</li></ol>
244
233
245
234
7. You have loaded a dataset into a Pandas DataFrame called `sales_df`. How would you display the first 10 rows of this DataFrame?<br>
246
235
a) `sales_df.show(10)`<br>
@@ -272,7 +261,7 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
272
261
c) Handling missing values and transforming variables.<br>
0 commit comments