Closed gka closed 11 years ago
messytable fails to recognize this tab-separated table. Here's what I tried:
from messytables import CSVRowSet from urllib import urlopen file = urlopen('./2012-Presidential-Campaign-Finance-Contributors.tsv') rs = CSVRowSet('data', file) sample = list(rs.sample) len(sample[0]) # = 1
Hi @gka. You have a TSV (tab separated value) file and will need to also pass delimiter='\t' to CSVRowSet.
delimiter='\t'
CSVRowSet
messytable fails to recognize this tab-separated table. Here's what I tried: