{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Input Data and Graphs" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We first began by formatting and graphing the results of ETAS by proffessor John Rundle to serve as a baseline for our model and to compare our results with. We also wrote instructions on how to run ETAS and uploaded it to the repository\n", "\n", "- - -" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Import Libraries" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import matplotlib.cm as cm\n", "import seaborn as sns\n", "\n", "csv_file = 'Formatted_ETAS_Output.csv'\n", "df = pd.read_csv(csv_file)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Data Table" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Date | \n", "Time | \n", "Year | \n", "X | \n", "Y | \n", "Magnitude | \n", "Z | \n", "
---|---|---|---|---|---|---|---|
0 | \n", "12/31/59 | \n", "0:03:09.00 | \n", "1960.002196 | \n", "-119.0502 | \n", "33.9790 | \n", "6.50 | \n", "8.2474 | \n", "
1 | \n", "1/2/60 | \n", "0:08:49.00 | \n", "1960.006125 | \n", "-115.6222 | \n", "33.0793 | \n", "4.25 | \n", "7.9322 | \n", "
2 | \n", "1/2/60 | \n", "0:10:31.00 | \n", "1960.007305 | \n", "-115.6323 | \n", "33.1220 | \n", "3.03 | \n", "8.4015 | \n", "
3 | \n", "1/2/60 | \n", "0:10:32.00 | \n", "1960.007320 | \n", "-115.5851 | \n", "33.0745 | \n", "3.03 | \n", "7.9678 | \n", "
4 | \n", "1/2/60 | \n", "0:11:07.00 | \n", "1960.007720 | \n", "-115.6256 | \n", "33.0290 | \n", "3.08 | \n", "7.9737 | \n", "