I have a df with Costs listed for each Month from 1-12, for some Months without any costs I would like to complete the series of Months with a Cost of 0. What would be the best way to do this? Input:
Section | Maintenance | Month | Group | Costs
---------|-------------|-------|-------|-------
A2 | Painting | 3 | 0 | 2000
A2 | Painting | 4 | 0 | 3500
A2 | Painting | 5 | 0 | 1000
A2 | Painting | 7 | 0 | 2500
A2 | Painting | 8 | 0 | 1500
A2 | Painting | 9 | 0 | 3000
A2 | Painting | 10 | 0 | 2000
A2 | Painting | 11 | 0 | 2000
A2 | Painting | 12 | 0 | 1000
A2 | Painting | 3 | 1 | 4000
A2 | Painting | 4 | 1 | 5000
A2 | Painting | 6 | 1 | 2000
A2 | Painting | 7 | 1 | 1500
A2 | Painting | 8 | 1 | 4000
A2 | Painting | 10 | 1 | 3500
A2 | Painting | 12 | 1 | 6000
A3 | Painting | 2 | 0 | 3000
Desired output:
Section | Maintenance | Month | Group | Costs
---------|-------------|-------|-------|-------
A2 | Painting | 1 | 0 | 0
A2 | Painting | 2 | 0 | 0
A2 | Painting | 3 | 0 | 2000
A2 | Painting | 4 | 0 | 3500
A2 | Painting | 5 | 0 | 1000
A2 | Painting | 6 | 0 | 0
A2 | Painting | 7 | 0 | 2500
A2 | Painting | 8 | 0 | 1500
A2 | Painting | 9 | 0 | 3000
A2 | Painting | 10 | 0 | 2000
A2 | Painting | 11 | 0 | 2000
A2 | Painting | 12 | 0 | 1000
A2 | Painting | 1 | 1 | 0
A2 | Painting | 2 | 1 | 0
A2 | Painting | 3 | 1 | 4000
A2 | Painting | 4 | 1 | 5000
A2 | Painting | 5 | 1 | 0
A2 | Painting | 6 | 1 | 0
A2 | Painting | 7 | 1 | 0
A2 | Painting | 8 | 1 | 0
A2 | Painting | 9 | 1 | 0
A2 | Painting | 10 | 1 | 0
A2 | Painting | 11 | 1 | 0
A2 | Painting | 12 | 1 | 0
A3 | Painting | 1 | 0 | 0
A3 | Painting | 2 | 0 | 3000
A3 | Painting | 3 | 0 | 0
A3 | Painting | 4 | 0 | 0
A3 | Painting | 5 | 0 | 0
A3 | Painting | 6 | 0 | 0
A3 | Painting | 7 | 0 | 0
A3 | Painting | 8 | 0 | 0
A3 | Painting | 9 | 0 | 0
A3 | Painting | 10 | 0 | 0
A3 | Painting | 11 | 0 | 0
A3 | Painting | 12 | 0 | 0
edit: wrong maintenance type sneaked in, expanded input/output example