I want the result of the calculation profit starts from the second row so I can get the result of the last row in my data frame because in this current code the last value of the profit is incorrect, it must be calculating the first row + the second row of the column 'value' but I need the result to start in the second row of the column 'profit'.
xf['profit']= xf.value + xf.value.shift(-1).fillna(0)
[enter image description here](https://i.stack.imgur.com/OoGyx.png)
I have tried to make the result of calculating the first and second row in 'value' to be in the second row in 'profit' but that ruined my code.