I am trying to read individual data in pandas in the next tab:
test.txt:
col_a\tcol_b\tcol_c\tcol_d
4\t3\t2\t1
4\t3\t2\t1
I import test.txt as follows:
pd.read_csv('test.txt',sep='\t')
The resulting framework has 1 column. \ T is not recognized as a tab.
If I replace \ t with the "keyboard tab", the file will be parsed correctly. I also tried replacing '\ t with \ t and / t and no luck.
Thanks in advance for your help. Lobster
PS: Screenshot of http://imgur.com/a/nXvW3
source
share