Skip to content

Commit 0bd4732

Browse files
authored
Create Quiz_Penguins.md
1 parent f19789e commit 0bd4732

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Quiz_Penguins.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
### Quiz Question:
2+
You are working with the penguin dataset and identified missing values using the following command:
3+
4+
```python
5+
print(penguins.isnull().sum())
6+
```
7+
output will be
8+
```python
9+
species 0
10+
island 0
11+
bill_length_mm 2
12+
bill_depth_mm 2
13+
flipper_length_mm 2
14+
body_mass_g 2
15+
sex 10
16+
dtype: int64
17+
```
18+
19+
You can get new dataset that all the missing is row will be removed
20+
```python
21+
# Drop rows with missing values
22+
penguins_clean = penguins.dropna()
23+
```
24+
25+
Question: Assume the dataset has 344 rows before cleaning, and a total of 18 missing values have been identified. If you decide to drop all rows with at least one missing value, what is the maximum number of rows that can be removed?
26+
Answer Choices:
27+
28+
A) 18
29+
B) 10
30+
C) 6
31+
D) 8
32+

0 commit comments

Comments
 (0)