jenkinsfile

This commit is contained in:
unknown 2020-04-03 15:38:58 +02:00
parent 559229f882
commit 10c83c1edb

View File

@ -37,22 +37,22 @@ ssr.close()
with open('wikiniews_results.tsv','r') as f_in: with open('wikiniews_results.tsv','r') as f_in:
with open('wikiniews_results2.tsv', 'w') as f_out: with open('wikiniews_results2.tsv', 'w') as f_out:
writer = csv.writer(f_out, delimiter=' ', lineterminator='\n') writer = csv.writer(f_out, delimiter=' ', lineterminator='\n')
reader = csv.reader(f_in, delimiter=' ') reader = csv.reader(f_in, delimiter=' ')
result = [] result = []
# read headers # read headers
row = next(reader) row = next(reader)
# add new header to list of headers # add new header to list of headers
row.append('Col5') row.append('Col5')
result.append(row) result.append(row)
cc = 0 cc = 0
for row in reader: for row in reader:
# add new column values # add new column values
row.append(werArray[counter]) row.append(werArray[counter])
cc += 1 cc += 1
result.append(row) result.append(row)
writer.writerows(result) writer.writerows(result)