I'm trying to append a .csv file with monthly numbers using python. The .csv looks like something like this:
Month,Jan,Feb
Total,70,80
Critical,20,30
High,50,50
I've been trying to develop a method along these lines with no luck:
def append_csv(high_value, critical_value)
That would have result in the following:
append_csv(30, 20)
Output:
Month,Jan,Feb,Mar
Total,70,80,50
Critical,20,30,20
High,50,50,30
I have looked at Appending to the end of a certain line, however it felt inefficient for what I was trying to accomplish and wouldn't modify row one. Thank you for your help.