Tool for automatically generating simulated data sets of Boston Public Schools students, their school assignments, their bus stop assignments, and bus routes.
To install all requirements:
python -m pip install --upgrade --no-cache-dir -r requirements.txt
To execute the script and generate individual data sets (placed in the output
subdirectory by default):
python generate-bus-data.py
python generate-student-data.py
python generate-stop-data.py
python generate-route-data.py
To generate an Excel workbook that assembles all the generated data (appropriate for submission to the bps-challenge-score scoring tool):
python generate-assembled-data.py
Once the student data has been generated, load output/students.html
in any browser to view a rendering that uses the Leaflet library.
Likewise, once the route data has been generated you can view it at output/routes.html
.
- Public Schools from Analyze Boston
- Boston Street Segments (GeoJSON format) from Analyze Boston
- Property Assessment 2014 from Analyze Boston
- Zip codes from Mass.gov
- Boston family household data from Boston Planning & Development Agency (BPDA)
- Boston Census Blocks from Harvard WorldMap
- Children per household from National Center for Education Statistics