How to get average or mean between two pandas pd.Timestamp objects?
In order to compute the mean value between two pd.Timestamp
instances, subtract them to obtain a pd.Timedelta
and then add said Timedelta
object to the first (smaller) timestamp:
t1 = pd.Timestamp('now')
t2 = pd.Timestamp('now')
mean_timestamp = t1 + ((t2 - t1) / 2)