首页 > 其他分享 >pandas批量读取xlsx中的sheet

pandas批量读取xlsx中的sheet

时间:2022-10-11 10:59:28浏览次数:76  
标签:xlsx sheet 读取 excel pd pandas

import pandas as pd
#sheet_name=None的意思是,一次性将所有的工作表都读取出来
dfs2 = pd.read_excel("test.xls",sheet_name=None)
pd.concat(dfs2).to_excel("text.xlsx")

参考资料:https://blog.csdn.net/qiuqiuit/article/details/120596158

标签:xlsx,sheet,读取,excel,pd,pandas
From: https://www.cnblogs.com/tiansz/p/16778459.html

相关文章