I have a list of timestamps and want to loop through them and see if the time-delta between each of them is greater than 4 hours here is some pseudo code I tried but I do not know the syntax in pandas:
timestamps = ["7/20/2020 12:38:39 AM", "7/20/2020 2:50:46 AM","7/25/2020 7:18:55 PM"]
for x in range(0,len(timestamps)-1):
t1 = timestamps[x]
t2 = time[timestamps[x+1]
if (t2 - t1) >4 hours:
print('Greater Than 4 hours!')