0
点赞
收藏
分享

微信扫一扫

pandas.read_excel默认读取第一行为列名 但是 pandas.DataFrame默认没有列名, 第一行就是第一行 除非你设置

汤姆torn 2023-12-15 阅读 43

pandas.read_excel默认读取第一行为列名

headerint, list of int, default 0

Row (0-indexed) to use for the column labels of the parsed DataFrame. If a list of integers is passed those row positions will be combined into a MultiIndex. Use None if there is no header.

但是 pandas.DataFrame默认没有列名, 第一行就是第一行 也没有可以设置列名为第一行的属性 必须自己编函数

举报

相关推荐

0 条评论