how to read certain columns from Excel using Pandas - Python

后端 未结 3 2061
轮回少年
轮回少年 2020-11-29 03:53

I am reading from an Excel sheet and I want to read certain columns: column 0 because it is the row-index, and columns 22:37. Now here is what I do:

import p         


        
3条回答
  •  抹茶落季
    2020-11-29 04:42

    parse_cols is deprecated, use usecols instead

    that is:

    df = pd.read_excel(file_loc, index_col=None, na_values=['NA'], usecols = "A,C:AA")
    

提交回复
热议问题