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 Rodent-Related Features from 311 Data #7

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

Extract Rodent-Related Features from 311 Data #7

jasonasher opened this issue Sep 22, 2017 · 3 comments
Assignees

Comments

@jasonasher
Copy link
Owner

jasonasher commented Sep 22, 2017

Start with the 311 Service Request data in the /Data Sets/311 Service Requests/ folder in Dropbox.
Write a script that uses this data to produce a feature data table for the number of new 'Rodent Inspection and Treatment' requests in the past week.

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

The 'Rodent Inspection and Treatment' service code is S0311. Additionally, there is a SERVICENOTES field that may give additional information about the response to the given service requests. We are interested in knowing if those fields indicate that the resulting inspections actually found rodents or rodent burrows. We will code these as:
"rats_found", "rats_not_found", or "unknown" depending upon the resulting status.

Input:
CSV files with data for each given year

Output:
A CSV file with

  • 1 row for each feature subtype (status of rodents found), week, year, and census block
  • The dataset should include the following columns:

feature_id: The ID for the feature, in this case, "311_service_requests"
feature_type: The service code, in this case "S0311"
feature_subtype: The string, either "rats_found", "rats_not_found", or "unknown" that indicates the status of the requests in this feature entry
year: The ISO-8601 year of the feature value, i.e. the year that the service requests were logged (from SERVICEORDERDATE)
week: The ISO-8601 week number of the feature value, i.e. the week that the service requests were logged (from SERVICEORDERDATE)
census_block_2010: The 2010 Census Block of the feature value
value: The value of the feature, i.e. the number of 'Rodent Inspection and Treatment' requests of the specified subtypes in the given census block during the week and year 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!

@supermdat
Copy link
Collaborator

Hi @jasonasher and @eclee25. I'm interested in working on this issue, but I don't think I have rights to assign it. Could one of you assign to me please? Thanks.

@jasonasher jasonasher assigned jasonasher and unassigned jasonasher Oct 15, 2017
@supermdat supermdat self-assigned this Oct 15, 2017
@supermdat
Copy link
Collaborator

Thanks, @jasonasher!

@jasonasher
Copy link
Owner Author

I think GitHub still doesn't have assignment of issues for non-collaborators!

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

3 participants