码迷,mamicode.com
首页 > 编程语言 > 详细

python 获取excel文件内sheet名称列表

时间:2017-10-04 23:53:24      阅读:351      评论:0      收藏:0      [点我收藏+]

标签:xls   pretty   exce   foo   name   print   ram   str   dataframe   

xl = pd.ExcelFile(‘foo.xls‘)

xl.sheet_names  # see all sheet names

xl.parse(sheet_name)  # read a specific sheet to DataFrame

python 获取excel文件内sheet名称列表

标签:xls   pretty   exce   foo   name   print   ram   str   dataframe   

原文地址:http://www.cnblogs.com/qingyuanjushi/p/7627965.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!