I am trying to add a new column to my dataset that is based on the following row in the dataset. I have attached an example of the input data I’m working with and the desired output data for this example.
I have a series of ‘from’ data that is listed in a sequence based on record numbers. I want to add a new column called ‘to’ that takes the ‘from’ ID from the following record in the sequence and adds it to the preceeding row.
Use Lag column to shift the data
Note: Sadly his node dos not support a negative value but I’ve got a fallback. Maybe you vote for this feature request?