【pandas教程】pandas.read_excel()函数usecols参数详解

2021/07 31 18:07
阅读(3344)

当我们用pandas的read_excel读取excel数据时,会遇到excel工作表里有非常多的列,但我们在做数据分析时可能只需要用到其中的部分列。这个时候就需要用到read_excel的usecols参数(Usecols是use columns的缩写),用来指定read_excel读取excel表时只读取usecols指定列的数据。