I know how to read .xls
files with pandas
. However, it returns all the data. I want to load data on demand, I mean, I want a generator that returns the next row each time is iterated. See this question for general files.
I know openpyxl
can do this, following this webpage. However, it doesn't support old .xls
files. It recommends me to use xlrd
, however, I don't know how to do what I want with that package.
The documentation tells how to do that sheet by sheet, but not row by row (my file has only one sheet).