Я знаю, что здесь есть аналогичное решение для read_csv
Но не могу найти решение для Excel.
Например:
Код: Выделить всё
# contents of sample.xlsx:
#Col1,Col2,Col3
#1,2,3
#4,5,6
Код: Выделить всё
pd.read_excel(sample.xlsx, usecols=“A:D”)
ParserError: Defining usecols without of bounds indices is not allowed. [3]
Подробнее здесь: https://stackoverflow.com/questions/786 ... el-usecols