I have multiple archives which contain multiple .tsv files. What I'm trying to do is extract some of these files and make a new .tsv file that merges/concatenates the files I've chosen. I'm stuck though, the only solution that I came up with merges them but with writing /t instead of tabbing properly. This is what I've tried so far:
for numbers in list:
file_name = numbers
zip_ref = zipfile.ZipFile(archive_name, 'r')
file_to_concat = zip_ref.read(file_name)
model_file.write(str(file_to_concat))
At the end, in the model_file I will have text full of '\t' and no tabs. I guess I should use 'import csv' somewhere ? I have no idea though how to do it