Skip to content

Commit 211ce58

Browse files
committed
Add new quiz questions
1 parent 79921df commit 211ce58

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

docs/src/columns.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,12 @@ Much better! We have a clean list of helicopter models and their frequencies.
100100

101101
In the real world, you will almost always need to clean your data before you can analyze it, though the challenges will typically be more complex than this one. Pandas offers a wide range of tools to help you clean your data, but the basic process is always the same: Identify the problem, fix it, and then check your work. The `value_counts` method is one of the most useful tools in this process.
102102

103-
## Pop quiz
104-
105-
Before we move on to the next chapter, here's a challenge. See if you can answer a few more questions a journalist might ask about our dataset. All four of the questions below can be answered using only tricks we've covered thus far.
103+
Before we move on to the next chapter, here's a challenge. See if you can answer a few more questions a journalist might ask about our dataset. All of the questions below can be answered using only tricks we've covered thus far.
106104

107105
1. What was the total number of fatalities?
108-
2. Which helicopter maker had the most accidents?
109-
3. What was the total number of helicopter accidents by year?
110-
4. Which state had the most helicopter accidents?
106+
2. What helicopter maker had the most fatal accidents?
107+
3. What year had the most fatal helicopter accidents?
108+
4. How many fatal helicopter accidents occurred in Texas?
109+
5. How many different helicopter makers are in the dataset?
111110

112111
Once you’ve written code that generates the answers, you’re ready to move on to the next chapter.

docs/src/sorting.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,11 @@ Note that returns the DataFrame resorted in ascending order from lowest to highe
4747
merged_list.sort_values("per_100k_hours", ascending=False)
4848
```
4949

50-
Congratulations. With that, you've recreated the heart of the analysis published in the Los Angeles Times and covered most of the basic skills necessary to access and analyze data with pandas. In our next chapter, we will show another pandas trick that's sure to come in handy.
50+
Congratulations. With that, you've recreated the heart of the analysis published in the Los Angeles Times and covered most of the basic skills necessary to access and analyze data with pandas.
51+
52+
Before we move on, here's another quiz for you. You can answer all of these questions using only tricks we've learned thus far.
53+
54+
1. What’s the date of the most recent fatal helicopter accident in Texas?
55+
2. How many total fatalities occurred in Texas accidents?
56+
3. What helicopter model logged the most flight hours?
57+
4. Where did the accident with the NTSB number `ERA13LA057` occur?

0 commit comments

Comments
 (0)