I am trying to write to a csv file via the following
file = open(\'P:\\test.csv\', \'a\') fieldnames = (\'ItemID\', \'Factor\', \'FixedAmount\') wr = csv.D
You need to pass an additional parameter to the 'open()' function:
file = open('P:\test.csv', 'a', newline='')
This will keep it from skipping lines.