<p>I have a series of datetime objects and would like to calculate the average delta between them.</p>

<p>For example, if the input was <code>(2008-10-01 12:15:00, 2008-10-01 12:25:00, 2008-10-01 12:35:00)</code>, then the average delta would be exactly 00:10:00, or 10 minutes.</p>

<p>Any suggestions on how to calculate this using Python?</p>

As far as algorithms go, that's an easy one.  Just find the max and min datetimes, take the difference, and divide by the number of datetimes you looked at.
If you have an array a of datetimes, you can do:
```
```
mx = max(a)
mn = min(a)
avg = (mx-mn)/(len(a)-1)
```
```
to get back the average difference.
EDIT:  fixed the off-by-one error