0

Suppose I have the following data frame:

a   -  b    -   c
0   -  10   -   40  
1   -  20   -   50  
2   -  30   -   60

Except for the first row, I'd like to end up with this: (I'm adding each cell value with the one right before it)

a   -  b    -   c
0   -  10   -   40  
1   -  30   -   90  
2   -  60   -   150

Is this possible without using a for loop?

Shaido
  • 27,497
  • 23
  • 70
  • 73

0 Answers0