Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.93 KB

README.md

File metadata and controls

57 lines (41 loc) · 1.93 KB

CarRepairCodingChallenge

Pre-requites

  • python 2.7
  • Django 1.4

Local Setup Environment

Heroku Link

Assumptions

  • Every job is considered mutually independent and Length of Service is computed as Pickup Date - Dropoff Date + 1,

Computation of Average LOS and Ratio with National Average :

* Average LOS  = Sum(los for each  (mechanic, repair type) ) / No. of records for (mechanic, repair type)

Ranking Metrics:

  • Repair type : Ranking each repair type separately
  • Ratio of Average: Ranking by ratio of average in descending order.

Seed File

  • The seed file being used for every transaction is stored in lengthOfService/seed.csv.

Run the Calculations from UI:

Run the Calculations from Shell:

  • place/replace the seed file as seed.csv in the lengthOfService folder
  • python manage.py shell
  • from print_to_screen import *
  • write_to_shell()

Run the Tests

  • python manage.py test lengthOfService.LosComputationTest.compute_los_test