Concatenate encoder and preset into one column
Some checks failed
ci/woodpecker/push/linting Pipeline failed

This commit is contained in:
RealStickman 2022-10-28 11:16:31 +02:00
parent e4baf3d28f
commit ae1507d478

16
concat_csv.py Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env python3
import os
import csv
file = "/home/marc/Dokumente/v0.0.1a2-data-1666552071.csv"
with open(file, "r") as f:
reader = csv.reader(f)
output = os.path.splitext(file)[0] + "-joined.csv"
with open(output, "w") as file:
writer = csv.writer(file)
for row in reader:
new_row = [" ".join([row[0], row[2]])] + [row[1]] + row[3:]
writer.writerow(new_row)