Source

ml4hackers / fixufo.py

Full commit
1
2
3
4
5
6
7
#!/usr/bin/env python

import csv
reader = csv.reader(open('ufo_awesome.tsv'), delimiter='\t')
writer = csv.writer(open('ufo_fixed.tsv', 'w'), delimiter='\t')
for row in reader:
    writer.writerow(row[:6])