how to calculate difference between two hours in pandas code example Example: difference between 2 timestamps pandas print pd.Timedelta(t2 - t1).seconds / 60.0