首页 > 其他分享 >pandas 读取 excel 时指定某些列

pandas 读取 excel 时指定某些列

时间:2022-09-22 09:44:32浏览次数:50  
标签:xlsx word 读取 read AK excel usecols pandas

单列

其中B就代表excel表中的列索引

standard_word = pd.read_excel('合并.xlsx', usecols='B')

多列

其中C:AK就代表excel表中的列索引

generalized_word = pd.read_excel('合并.xlsx', usecols='C:AK')

标签:xlsx,word,读取,read,AK,excel,usecols,pandas
From: https://www.cnblogs.com/tiansz/p/16718087.html

相关文章