Suppose we have a data frame like this:
Value Image
24.34 pic_00001
232.4 pic_00002
342.34 pic_00003
The Image
column continues in the same sequence up to pic_10000
in the full data set.
I'd like to replace the Image
column values so that it starts at pic_00002
- essentially deleting pic_00001
and shifting them all up. The Values
column should stay the same. In other words, the output should look like:
Value Image
24.34 pic_00002
232.4 pic_00003
342.34 pic_00004
Up to pic_10001
(which will need to be generated if the method is to shift all column values up by 1)
Does anybody know how to do this?