I have a dataframe that looks like this
Name a
b 4
c 4
d 4
I want to subtract a number from each row in column a, that number is given by an arithmetic sequence (x=x+1) and starts from 1, hence the result will be the below.
Name a
b 3
c 2
d 1
How can this be achieved?