读取整个文件然后删除不需要的列:使用 drop() 函数删除不需要的列。
drop()
只选择需要的列读取:使用 usecols 参数来指定这些列。
usecols
查看列名column_names = df.columns
sheet_name
demo:
df.to_excel('data.xlsx', index=False) # index 就是在增加一列,作为索引。目前没啥作用,用不到
numpy是不是也能写入
不能