How to manipulate datetime.timedelta and string (Python) : I was trying to sort out the average response time on services provided from **raw data**

**What I did:**

    for aline in rows:
            delta_a = datetime.datetime.strptime(aline[0], "%Y-%m-%d")
            delta_b = datetime.datetime.strptime(aline[1], "%Y-%m-%d")
            delta = (delta_b - delta_a)/2

            print "The average response time for %s is %d" %(aline[5],delta.days)

**Results:**

     The average response time for Medical Services is 2
     The average response time for Medical Services is 2
     The average response time for Physical Therapy is 5
     The average response time for Physical Therapy is 3
     The average response time for Chiropractic is 0

**What I wanted to be: (but couldn't carry on from here)**

     The average response time for Medical Services is 2 days
(note that it should remove duplicates)


     The average response time for Physical Therapy is 5 days
(note that there are two Physical Therapy but I took the highest number of days from it which is 5)

     The average response time for Chiropractic is less than 24 hours
(note that if it was 0 days then it should change to "less than 24 hours")


_


Thank you for reading.

 This was to read from a CSV file and manipulate the data. Reason for repeated line, because this is a raw data provided so it means that there are patients register on each type of services

Is it possible to store string and datetime.timedelta into list or dictionary?