Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Page
Discussion
Edit
View history
Editing
Community Data Science Workshops (Spring 2016)/Day 3 Projects
(section)
From CommunityData
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Part 1: Downloads == ''If you are confused by anything today, go back and refresh your memory with the [[Community Data Science Workshops (Fall 2015)/Day 0 setup and tutorial|Day 0 setup and tutorial]] and [[Community Data Science Workshops (Fall 2015)/Day 0 tutorial|Day 0 tutorial]]'' ;Step 1: Download today's scripts: [http://jtmorgan.net/cdsw/nov7cdsw.zip Python scripts] ;Step 2: Unzip the folder, navigate to it in your terminal, and add some data cleanup code to the <pre>download_building_permit_data.py</pre> script before running it: In that file, just before the <pre>writer.writerow</pre> line inside the for loop (around line 43), add this block: <pre> if 'latitude' not in x or 'longitude' not in x: continue </pre> This will clean up some issues with missing lat/long coordinates. ;Step 3: Now, get the dataset by running the script you just fixed: <pre>python download_building_permit_data.py</pre> Now open up the CSV output file to verify that you got all the data you asked for. You can view the full set of permit applications at: https://data.seattle.gov/Permitting/Building-Permits-Current/mags-97de ;Challenge question: how could we change our API query to download the applicant names for all COMMERCIAL building permits issued within the past year?
Summary:
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see
CommunityData:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information