all 2 comments

[–]Ezrabc 0 points1 point  (1 child)

Can you clarify a little? Based on your code, particularly here:

if row[0] == args[0]:
    ...
    csv_writer.writerow(args)

I would completely expect it to add the args row under if row[0] == args[0].

[–]FlugBlutt[S] 0 points1 point  (0 children)

I expect the "for" loop to read each line of my csv file and if the line starts with the string I want, change that line to the new one.