I have data containing columns x and lx, I want to get cumulative sum on lx basis. My data is like:
| x | l(x) |
|---|---|
| 20 | 100.000 |
| 21 | 99.644 |
| 22 | 99.286 |
| 23 | 98.925 |
| 24 | 98.561 |
| 25 | 98.195 |
| 26 | 97.829 |
and I want to get output like :
| x | l(x) |
|---|---|
| 20 | 692.440 |
| 21 | 592.440 |
| 22 | 492.796 |
| 23 | 393.510 |
| 24 | 294.585 |
| 25 | 196.024 |
| 26 | 97.829 |
ie. accumulative sum
So it there a possible way to achieve it?