read_excel函数正在解析错误的列?

时间:2018-06-20 10:08:02

标签: python pandas

我在excel中有下表

Year Quarter Reg orgID name s1 s2 s3

我正在尝试将此表读入python,仅采用orgID和s3列,为此我尝试了

p = Path(directory)
#read file in
nf=pd.read_excel(p, parse_cols=[3,7])

但是这仅输出一列,但是该列是Reg。有谁知道为什么会选择错误的列?

0 个答案:

没有答案