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_results2.tsv', 'w') as f_out:
writer = csv.writer(f_out, delimiter=' ', lineterminator='\n')
reader = csv.reader(f_in, delimiter=' ')
with open('wikiniews_results2.tsv', 'w') as f_out:
writer = csv.writer(f_out, delimiter=' ', lineterminator='\n')
reader = csv.reader(f_in, delimiter=' ')
result = []
# read headers
row = next(reader)
# add new header to list of headers
row.append('Col5')
result.append(row)
result = []
# read headers
row = next(reader)
# add new header to list of headers
row.append('Col5')
result.append(row)
cc = 0
for row in reader:
# add new column values
row.append(werArray[counter])
for row in reader:
# add new column values
row.append(werArray[counter])
cc += 1
result.append(row)
result.append(row)
writer.writerows(result)
writer.writerows(result)