Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Features from Occupancy Permit Data #10

Open
jasonasher opened this issue Sep 22, 2017 · 2 comments
Open

Extract Features from Occupancy Permit Data #10

jasonasher opened this issue Sep 22, 2017 · 2 comments

Comments

@jasonasher
Copy link
Owner

Start with the Occupancy Permit data in the /Data Sets/Occupancy Permits/ folder in Dropbox.
Write a script that uses this data to produce a feature data table for the number of new occupancy permits issued in the last 4 weeks.

You can find the data format and examples on the Feature Dataset Format tab in this document

Input:
CSV files with data for each given year

Output:
A CSV file with

  • 1 row for each occupancy permit type, and each week, year, and census block
  • The dataset should include the following columns:

feature_id: The ID for the feature, in this case, "occupancy_permits_issued_last_4_weeks"
feature_type: Occupancy permit type, found in the EVENTTYPESCODEDESC column of the source data
feature_subtype: Left blank
year: The ISO-8601 year of the feature value
week: The ISO-8601 week number of the feature value
census_block_2010: The 2010 Census Block of the feature value
value: The value of the feature, i.e. the number of new occupancy permits of the specified types issued in the given census block during the previous 4 weeks starting from the year and week above.

When you are finished
Submit a pull request on GitHub (or upload your scripts)
Upload any files to Dropbox

Need more information?
Flag Jason or Elizabeth, or ask your question in the comments below and we'll respond as soon as we can!

@jasonasher
Copy link
Owner Author

Look at the issue #3 solution for helpful inspiration!

@eclee25
Copy link
Collaborator

eclee25 commented Jan 9, 2018

Migrated open issue to codefordc/the-rat-hack repository as issue_11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants