I need to calculate the value which has the similar name in the header. Here i have Bill and Non Bill fields in the column. I need to calculate all the Bill separately and non-bill separately and need to sum in another column Bill Amt Total and Non Bill Amt Total using xlswrriter in python.
Input file
Name | Bill - Php | Non Bill - Php | Bill - JS | Non Bill -JS
Alex | 30 | | 10 |
Ram | 10 | 20 | |
Stephen | | | 20 |
Robert | | 10 | | 10
Mohan | | 20 | 10 |
Output file:
Name | Bill - Php | Non Bill - Php | Bill - JS | Non Bill -JS | Bill Total Amt | Non Bill Total Amt
Alex | 30 | | 10 | | 40 |
Ram | 10 | 20 | | | 10 | 20
Stephen | | | 20 | | | 20
Robert | | 10 | | 10 | | 20
Mohan | | 20 | 10 | | 10 | 20