pandas函数read_excel

pandas read_excel函数官方文档链接

pandas.read_excel(io, sheet_name=0, header=0, names=None, index_col=None, usecols=None, squeeze=False, dtype=None, engine=None, converters=None, true_values=None, false_values=None, skiprows=None, nrows=None, na_values=None, keep_default_na=True, na_filter=True, verbose=False, parse_dates=False, date_parser=None, thousands=None, comment=None, **skipfooter=0**, convert_float=None, mangle_dupe_cols=True, storage_options=None)

函数功能:Read an Excel file into a pandas DataFrame.
将excel文件读取成DataFrame

支持格式:xls, xlsx, xlsm, xlsb, odf, ods 格式,支持读取1个sheet工作表或者多个sheet工作表


部分形式参数说明:


待读取的文件路径
Io : str, bytes, ExcelFile, xlrd.Book, path object, or file-like object。

待读取的表名
sheet_name: str, int, list, or None, default 0
按照sheet名称读取sheet时,用str 字符串
按照sheet位置读取sheet是,用int从0开始的整数索引
读取多个sheet时,用Lists of strings/integers 字符串list或整数list
读取所有sheet时,用none

选定标题
header: int, list of int, default 0
从数据中选定标题行。
如果数据中没有标题,用none
如果选定特定行作为标题,用int 用0开始的索引整数
如果要使用行的多重索引,用a list of integers

跳过最后行
skipfooter:int, default 0
Rows at the end to skip (0-indexed).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

陆百亿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值