Quantcast
Channel: How to Read .txt in Pandas - Stack Overflow
Viewing all articles
Browse latest Browse all 3

How to Read .txt in Pandas

$
0
0

I'm trying to pull a txt file which has two series of data into pandas. So far I've tried the variations below which I've source from other posts on stack. So far it will only read in as one series.

The data I'm using is available here

icdencoding = pd.read_table("data/icd10cm_codes_2017.txt", delim_whitespace=True, header=None)icdencoding = pd.read_table("data/icd10cm_codes_2017.txt", header=None, sep="/t")icdencoding = pd.read_table("data/icd10cm_codes_2017.txt", header=None, delimiter=r"\s+")

I'm sure I'm doing something really obviously wrong but I can't see it.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images