1 回答
TA贡献1943条经验 获得超7个赞
你的桌子被包裹在里面<thead></thead>。熊猫将所有内容解释为列是可以理解的。咱们试试吧:
tmp=pd.read_html(text)[0]
pd.DataFrame(tmp.columns.to_frame().values)
输出:
0 1 2 3 4
-- ---------- ---------------- ---------------- ---------------- ----------------
0 Placement Front Stabilizer Front Stabilizer Front Stabilizer Front Stabilizer
1 Production Oct 16~ Oct 16~ Oct 16~ Oct 16~
2 Eng.Vol. 1.5 L 1.5 L 1.5 L 2.0 L
3 Body No HRW18 HRW18 LHD HRW28 HRW38 RHD
4 Eng No L15BY L15BY L15BY R20A9
5 Notes Pos:Left/Right Pos:Left/Right Pos:Left/Right Pos:Left/Right
添加回答
举报