Skip to content

Commit

Permalink
Updated writing
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedkadd committed May 13, 2020
1 parent d08b33a commit 203b780
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion data.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ <h1 class="title">
</ol>

<h3 id="wrangling">Wrangling</h3>
<h4>Prototypes</h4>

<p>The original dataset contained 337K rows. I used the data filtering tool on the DataSF website to narrow the dataset down to only the rows I am interested in.
First, I filtered the dataset to only show rows where the incident category contains the word "theft". I furthered narrowed it down to rows where the incident
Expand All @@ -118,11 +119,16 @@ <h3 id="wrangling">Wrangling</h3>

<p>Next, I filtered the dataset down using the DataSF filtering tool to only show incidents that happened in the last 30 days. These are the incidents which are
most relavent for this project. I did this by filtering to only include rows in which the incident datetime is between 2020/03/29 and 2020/04/27. For the future,
I will use the DataSF API and dynamically filter rows to show the lost 30 days instead of hardcoding the dates.</p>
I will use the DataSF API and dynamically filter rows to show the last 30 days instead of hardcoding the dates.</p>

<p>Finally, I filtered the dataset using the DataSF filtering tool to remove rows which have empty data. I noticed I was getting some errors because certain rows
did not have a value for latitude or longitude. To fix this, I filtered out any rows in which latitude or longitude are empty.</p>

<h4>Final Visualizations</h4>
<p>For the final visualizations, I wrangled the data using the same filters as the prototypes. However, for the date, I dynamically filter the last 28 days of data
to get a snapshot of what is currently happening. I also use the API for the data, as opposed to the filtering tools on the DataSF website. Filtering is done by
editing the URL for the API request.</p>

<h2 id="about">About</h2>

<!-- Profile box -->
Expand Down

0 comments on commit 203b780

Please sign in to comment.