Learn practical skills, build real-world projects, and advance your career

Recent Earthquakes in the South West of Iceland

With an increased activity in earthquakes on the south west corner of Iceland it is interesting to dive a little bit deeper into it and look at how the activity is. Experts are saying that an eruption could be imminent but why do they believe it is so. Lets look at the data and try to see what they see.

This Jupyter Notebook will utilize tools and techniques tought in the 'Data Analysis with Python: Zero to Pandas' course.

The data was retrieved from the Icelandic Meteorological Office on Thursday 04.03.21 at 13:45 GMT and showcases seismic activity in the area in the last 48 hours.

Preperation and Downloading the Dataset

In order to be able to run the code below we need to setup the environment. We start by making sure that we have all necessary python libraries installed and imported into the notebook.

!pip install jovian --upgrade --quiet
!pip install numpy --upgrade --quiet
!pip install pandas --upgrade --quiet
!pip install matplotlib --upgrade --quiet
!pip install seaborn --upgrade --quiet
import jovian
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib
import matplotlib.dates as mdates
import matplotlib.cbook as cbook
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
%matplotlib inline

project_name = 'earthquake_sw_iceland'
jovian.commit(project=project_name)

sns.set_style('darkgrid')
matplotlib.rcParams['font.size'] = 14
matplotlib.rcParams['figure.figsize'] = (9, 5)
matplotlib.rcParams['figure.facecolor'] = '#00000000'
[jovian] Attempting to save notebook.. [jovian] Updating notebook "joeolafs/earthquake-sw-iceland" on https://jovian.ai/ [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ai/joeolafs/earthquake-sw-iceland

Now that we have imported the libraries needed to analyse and display the data and set some parameters for the graphs we can move forward.

Let's begin by loading the dataset.
As this dataset is not available online I had to create an excel file prior to writing this.