Skip to content

osg9c1/CarRepairCodingChallenge

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published