pandas 读取 excel 时指定某些列

单列

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

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

多列

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

generalized_word = pd.read_excel('合并.xlsx', usecols='C:AK')
posted @ 2022-09-22 09:37  tiansz  阅读(712)  评论(0编辑  收藏  举报