Skip to content

QST: FutureWarning: Defining usecols with out of bounds indices is deprecated and will raise a ParserError in a future version. #48127

Closed
@Vondoe79

Description

@Vondoe79

Research

  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.

Link to question on StackOverflow

https://stackoverflow.com/questions/73263189/pandas-excel-data-read-with-incorrect-output-no-getting-all-the-tabular-data-fr?noredirect=1#comment129454561_73263189

Question about pandas

I have a similar issue in this conversation where I have a function - "read_files()" - which takes 2 arguments (a file_name & a list). I then traverse my project directory using a "For loop" to fetch the target files and feed them to the "read_files()" function. But I am constantly getting this error: FutureWarning: Defining usecols with out of bounds indices is deprecated and will raise a ParserError in a future version.

I have posted an excerpt of my code StackOverflow with the same data file at - https://stackoverflow.com/questions/73263189/pandas-excel-data-read-with-incorrect-output-no-getting-all-the-tabular-data-fr?noredirect=1#comment129454561_73263189. However, I have not gotten any workable solution thus far. I have even tried the suggestion by @ghost from March 2019 at - #25623 - but I still can't get my code to work.

I, therefore, welcome any further ideas/suggestions from this forum on what I may be missing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions