Why is iter_rows
always saying must be str, not int
? I am simply trying to pass my lst
values to min_row
and max_row
.
from openpyxl import load_workbook
from itertools import islice
wb = load_workbook('xyz.xlsx')
ws1 = wb['Sheet1']
lst = ['2','2']
limit = 2
for i in islice(lst,limit):
row = ws1.iter_rows(min_row=i,max_row=i)
I've tried casting ideas found here to iter_rows
min_row
max_row
but, I just get the same error and Worksheet object has no attribute
Trackback error is
line 509, in iter_rows
max_row += row_offset