ffmpeg-encoding-benchmark/concat_csv.py
RealStickman ae1507d478
Some checks failed
ci/woodpecker/push/linting Pipeline failed
Concatenate encoder and preset into one column
2022-10-28 11:16:31 +02:00

17 lines
422 B
Python
Executable File

#!/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)