I would like to create a new column based in another one, but I'd like to ignore the first value and start copying from the second value, in order to create a new column where I substract previous values. I'm trying to create this code to compare two datetimes and check how much time takes between these 2 values (which are datetimes and will be different in seconds/minutes).
I.E. code:
Column1 New_column Substraction
18:30 18:45 18:45 - 18:30 = 0:15
18:45 19:45 19:45 - 18:45 = 1:00
19:45 20:15 20:15 - 19:45 = 0:30
20:15 etc.
I'd say it's basically copy Column1 to another one but moving indexes, the first index of second column (index 0) has to be the second index of first column (index 1). Sorry if I don't explain myself very well, I'm trying to improve my English.
Thanks in advance!