As of now, I produced the below dataframe using python's pandas:
| ID | Revenue |
|---|---|
| 1 | 50000 |
| 2 | 50000 |
| 3 | 50000 |
| 4 | 50000 |
My end goal would be to produce the table below. The logic would be to iterate over the dataframe and have it execute the below formula. For reference, I would like the first row (ID #1) to remain static.
Formula: (Prior Row * 10%) + Prior Row
| ID | Revenue |
|---|---|
| 1 | 50000 |
| 2 | 55000 |
| 3 | 60500 |
| 4 | 66550 |