使用 pandas 读取 excel 表格之 header 参数指定列索引, index_col 参数指定行索引
程序员成长之旅 · 程序员成长之旅/Python学习/pandas · 591 字

跳过第一行, 使用第二行为列索引
pd.read_excel('header.xlsx', header=1)
一二行组成多叠列索引, 第1列作为行索引
- pd.read_excel('header.xlsx',
- header=[0, 1],
- index_col=0)
我的原创视频教程我的原创视频教程
【Python】Pandas 1.0 数据分析 & Excel 办公自动化 超详细动画可视化讲解 (2020 持续更新 ) 自动化办公
https://blog.csdn.net/qq_37975685/article/details/107908328