I have a df which sums every 5 rows in 'Costs' and puts into 'Sum'. Now I would like to add 4 empty rows between each value in 'Sum' to have it at the start of each 5 rows. What would be the most efficient and straight forward way to achieve this?
Input:
Costs | Sum
-------|-------
1000 | 10000
1500 | 22500
2000 | 35000
2500 |
3000 |
3500 |
4000 |
4500 |
5000 |
5500 |
6000 |
6500 |
7000 |
7500 |
8000 |
Output:
Costs | Sum
-------|-------
1000 | 10000
1500 |
2000 |
2500 |
3000 |
3500 | 22500
4000 |
4500 |
5000 |
5500 |
6000 | 35000