Class Activity: Earthquake Data
Please complete the following activity to practice working with aggregates and NumPy arrays, and also use Pandas where it is appropriate. You may work with a partner or individually.
1. Create a new Jupyter Notebook (we will be working with earthquake data). Pay attention to where you create the Notebook.
2. Download the data file from Moodle and store it in the same folder as the Jupyter Notebook.
3. Create a report on all earthquakes that occurred globally in the last 30 days. Your report should include:
a. Compute basic stats on all of the magnitude (max, min, median, mean, and 25th/75th percentiles)
b. The average magnitude where the type is ml
c. Find the date and location of the largest magnitude (can use reverse geocode of latitude/longitude or place)
d. Plot the significant earthquakes (mag 4.5+) in a histogram
e. Plot a histogram of only earthquakes that occurred in the US (hint: you know latitude/longitude).
For the submission, please create a Jupyter Notebook downloaded as pdf. You should include text throughout to explain/caption the code. To turn a cell into something you can type words in, with the cell selected, click Cell > Type > markdown.