BloomTech-Labs / PT15-cityspire-d-ds

Labs PT15 - CitySpire - Team D - Data Science Repository
MIT License
0 stars 4 forks source link

Refactor/ Abstract business logic into separate scoring functions #19

Closed danoand closed 3 years ago

danoand commented 3 years ago

Backgound

This PR introduces code that will support a route handler (to be developed) that generates an overall city score. That future route handler will need to generate the underlying scores that will be combined to calculate the city score

Files Modified:

  1. Pull out the /crime_scr calculation logic into a separate helper function: gen_crime_score
  2. Pull out the /walk_scr calculation logic into a separate helper function: gen_walk_score
  3. Update comments and docstring comments where applicable