title: How to sum previous and next row values in pandas
body: <p>After trying several hours i am still not able to perform the following task.
  I would like to sum to my center points the previous and next row value as shown in the image below</p>
  
  <p><a href="https://i.stack.imgur.com/z0hiC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z0hiC.png" alt="sum previous and next value to middle points"></a></p>
  
  <p>Can you please provide me with an example how that can be done?</p>
  
  <p>Thank you in advance for your time!</p>