Hi,
I'm trying to import a wide table format "txt" file and parse the rows, e.g.
pandas.read_csv(filename, sep='\t', lineterminator='\r')
I also tried '\015', and it doesn't throw an error, but it still gives me back the whole thing as one big string (75 columns and 0 rows) with ^M scattered throughout.
Am I missing something in the documentation? It looks like pandas.read_csv doesn't support this?
I can't tell if I have the mythical "C parser" or not, and I couldn't find documentation explaining what that is or if it's now built in to the version of pandas I'm using (0.13.1)?
I pip installed Cython, but that didn't seem to fix anything - do I need to rebuild pandas?
Alternatively, I'm guessing I would need to use the universal line terminator mode 'rU', e.g.
o = open(mypath,'rU')
mydata = csv.reader(o)
Unfortunately, pandas.read_csv won't let me just enter
lineterminator='rU'
because it's a string of length 2. :(
Any other tricks to get around this and shorten the journey to a dataframe?
Thanks,
Sam