Exercises
Using the data/parsed.csv
file and the material from this chapter, complete the following exercises to practice your pandas
skills:
- Find the 95th percentile of earthquake magnitude in Japan using the
mb
magnitude type. - Find the percentage of earthquakes in Indonesia that were coupled with tsunamis.
- Calculate summary statistics for earthquakes in Nevada.
- Add a column indicating whether the earthquake happened in a country or US state that is on the Ring of Fire. Use Alaska, Antarctica (look for Antarctic), Bolivia, California, Canada, Chile, Costa Rica, Ecuador, Fiji, Guatemala, Indonesia, Japan, Kermadec Islands, Mexico (be careful not to select New Mexico), New Zealand, Peru, Philippines, Russia, Taiwan, Tonga, and Washington.
- Calculate the number of earthquakes in the Ring of Fire locations and the number outside of them.
- Find the tsunami count along the Ring of Fire.