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
Copy file name to clipboardExpand all lines: docs/mlpaths/A1_Intro_to_DataScience_and_ML.md
+15-18Lines changed: 15 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,9 +181,6 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
181
181
*(Answer: (1) :eyes:)*
182
182
{ .annotate }
183
183
1. Answer is: <b>b</b>
184
-
{ .annotate }
185
-
2. Answer is: <b>c</b>
186
-
187
184
188
185
2. Consider the following Python code using Pandas:
189
186
```python
@@ -198,17 +195,17 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
198
195
b) 0<br>
199
196
c) Approximately 2.67<br>
200
197
d) 6<br>
201
-
*(Answer: (2) :eyes:)*
198
+
*(Answer: (a) :eyes:)*
202
199
{ .annotate }
203
-
2. Answer is: <b>c</b>
200
+
a. Answer is: <b>c</b>
204
201
205
202
206
203
3. Which Python library is primarily used for creating statistical visualizations like heatmaps and pair plots with concise syntax?<br>
207
204
a) NumPy<br>
208
205
b) Seaborn<br>
209
206
c) Pandas<br>
210
207
d) Scikit-learn<br>
211
-
*(Answer:(1) :eyes:)*
208
+
*(Answer:(1) :eyes:)*
212
209
{ .annotate }
213
210
1. Answer is: <b>b</b>
214
211
@@ -218,7 +215,7 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
218
215
b) It's the categorical label or class that the model aims to predict.<br>
219
216
c) It's a numerical value the model tries to estimate.<br>
220
217
d) It's a technique for reducing the number of features.<br>
221
-
*(Answer:(1) :eyes:)*
218
+
*(Answer:(1) :eyes:)*
222
219
{ .annotate }
223
220
1. Answer is: <b>b</b>
224
221
@@ -227,34 +224,34 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
227
224
b) To separate features from the target variable within a single dataset.<br>
228
225
c) To divide a dataset into one part for training the model and another, unseen part for evaluating its performance.<br>
229
226
d) To visualize the distribution of data.<br>
230
-
*(Answer:(2) :eyes:)*
227
+
*(Answer: (a) :eyes:)*
231
228
{ .annotate }
232
-
2. Answer is: <b>c</b>
229
+
a. Answer is: <b>c</b>
233
230
234
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>
235
232
a) `sns.histplot(data=df, x='Height', y='Weight')`<br>
236
233
b) `sns.boxplot(data=df, x='Height', y='Weight')`<br>
237
234
c) `sns.scatterplot(data=df, x='Height', y='Weight')`<br>
238
235
d) `df.plot(kind='scatter', x='Height', y='Weight')` (This is Pandas plotting, not Seaborn directly)<br>
239
-
*(Answer:(2) :eyes:)*
236
+
*(Answer: (a) :eyes:)*
240
237
{ .annotate }
241
-
2. Answer is: <b>c</b>
238
+
a. Answer is: <b>c</b>
242
239
243
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>
244
241
a) `sales_df.show(10)`<br>
245
242
b) `sales_df.display_head(10)`<br>
246
243
c) `sales_df.head(10)`<br>
247
244
d) `sales_df.first(10)`<br>
248
-
*(Answer:(2) :eyes:)*
245
+
*(Answer: (a) :eyes:)*
249
246
{ .annotate }
250
-
2. Answer is: <b>c</b>
247
+
a. Answer is: <b>c</b>
251
248
252
249
8. When you encounter a Python error message that you don't understand while working in a Jupyter Notebook, how can an LLM assist you most effectively?<br>
253
250
a) By automatically fixing the code in your notebook.<br>
254
251
b) By explaining what the error message typically means, suggesting possible causes, and providing examples of how to fix similar errors.<br>
255
252
c) By providing a link to the full Python documentation without context.<br>
256
253
d) By advising you to restart your computer.<br>
257
-
*(Answer:(1) :eyes:)*
254
+
*(Answer:(1) :eyes:)*
258
255
{ .annotate }
259
256
1. Answer is: <b>b</b>
260
257
@@ -263,18 +260,18 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
263
260
b) The first five rows of the DataFrame.<br>
264
261
c) A concise summary of the DataFrame, including data types of columns and non-null counts.<br>
265
262
d) The correlation matrix of numerical columns.<br>
266
-
*(Answer:(2) :eyes:)*
263
+
*(Answer: (a) :eyes:)*
267
264
{ .annotate }
268
-
2. Answer is: <b>c</b>
265
+
a. Answer is: <b>c</b>
269
266
270
267
10. Which of these tasks falls under the 'Data Cleaning/Preparation' stage of the data science workflow?<br>
271
268
a) Defining business objectives.<br>
272
269
b) Training a machine learning model.<br>
273
270
c) Handling missing values and transforming variables.<br>
0 commit comments