I wrote code which opens an excel file and iterates through each row and passes the value to another function.
import openpyxl wb = load_workbook(filename='C:\Users\xxxxx') for ws in wb.worksheets: for row in ws.rows: print row x1=ucr(row.value) row.value=x1 # i am having error at this point
I am getting the following error when I tried to run the file.
TypeError: IndexError: tuple index out of range
Can I write the returned value
x1 to the
row column. Is it possible to write to excel (i.e using
row) instead of accessing single cells like