summaryrefslogtreecommitdiff
path: root/bin/convert-cezar-ranking-csv.py
blob: 4dcee926c5984dfc6fac7ddeb55879be6e712c40 (plain)
1
2
3
4
5
6
7
8
9
import csv, sys

data = list(csv.reader(file(sys.argv[1]), delimiter=";"))

output = csv.writer(file(sys.argv[2], 'w'))

date = data[1][3]
for row in data[4:-1]:
    output.writerow([row[0], date, row[2], row[1]])