In [1]:
import csv
In [3]:
with open("../data/references/rep82/rep82.tax") as inf:
csv_inf = csv.reader(inf, delimiter="\t")
with open("../data/references/rep82.fixed.tax", "w") as outf:
for row in csv_inf:
row[1] = row[1].replace(" ", "_")
outf.write("\t".join(row) + "\n")