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 Time-to-Resolution features from 311 Data #15

Open
eclee25 opened this issue Sep 22, 2017 · 0 comments
Open

Extract Time-to-Resolution features from 311 Data #15

eclee25 opened this issue Sep 22, 2017 · 0 comments
Labels

Comments

@eclee25
Copy link
Collaborator

eclee25 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 average time to service request resolution for all service request types.

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 service code, week, year, and census block
  • Ignore records that have NA posted in the RESOLUTIONDATE column
  • The dataset should include the following columns:

feature_id: The ID for the feature, in this case, "311_service_requests_ttr"
feature_type: The service code, found in the SERVICECODE column of the 311 data
feature_subtype: NA
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 average number of days between the date listed in the SERVICEORDERDATE and RESOLUTIONDATE columns for all requests in that week, of that service type, in that census block.

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!

sylvest00 added a commit to sylvest00/dc_doh_hackathon that referenced this issue Sep 26, 2017
time to resolution PY and dataset, issue jasonasher#15
@eclee25 eclee25 added the admin label Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant