Input Output
1001 1001
1067 1067
1068 1067
1080 1080
1081 1080
1082 1080
1255 1255
1256 1255
1257 1255
1258 1255
1259 1255
1386 1386
1822 1822
My input column is on the left in my data frame.I need my output column to look like the 2nd column.any continuous sequence on the left must result with the output of the start of the sequence on the right column. Thank you