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>
219
223
a) To combine two different datasets into one.<br>
220
224
b) To separate features from the target variable within a single dataset.<br>
221
225
c) To divide a dataset into one part for training the model and another, unseen part for evaluating its performance.<br>
222
226
d) To visualize the distribution of data.<br>
223
227
*(Answer: (2) :eyes:)*
224
228
{ .annotate }
225
-
229
+
<span class="annotate">(2)</span><ol><li>when not possible</li></ol>
230
+
226
231
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>
227
232
a) `sns.histplot(data=df, x='Height', y='Weight')`<br>
228
233
b) `sns.boxplot(data=df, x='Height', y='Weight')`<br>
229
234
c) `sns.scatterplot(data=df, x='Height', y='Weight')`<br>
230
235
d) `df.plot(kind='scatter', x='Height', y='Weight')` (This is Pandas plotting, not Seaborn directly)<br>
231
236
*(Answer: (2) :eyes:)*
232
237
{ .annotate }
233
-
238
+
<span class="annotate">(2)</span><ol><li>when not possible</li></ol>
239
+
234
240
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>
235
241
a) `sales_df.show(10)`<br>
236
242
b) `sales_df.display_head(10)`<br>
@@ -264,7 +270,6 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
0 commit comments