I have this tsv file and i want to remove the ; from the list but it keeps giving me an error message 'AttributeError: 'list' object has no attribute 'split''
import csv
h = []
with open('paths_finished.tsv', 'rb') as csvfile:
ar = csv.reader(csvfile, dialect='excel-tab')
for row in ar:
h.append(row[3:4].split(';'))
print h
output:
['14th_century;15th_century;16th_century]
How do i split the ';' in this output?