for row in potus: end_date = row end_date = dt.datetime.strptime(end_date, "%m/%d/%y %H:%M") row = end_date for row in potus: start_date = row end_date = row length = end_date - start_date if length in appt_lengths: appt_lengths[length] +=1 else: appt_lengths[length] = 1 min_length = min(appt_lengths) max_length = max(appt_lengths)
What actually happened:
The above error is generated on the already provided code that converts the
appt_end_date to datetime objects. Same error is thrown when the code provided in the solution is run.