Thank you for your speedy reply.
With your example I've come up with the following code, which
does the job required.
fp = c:\workbook.xls
book = xlrd.open_workbook(fp, formatting_info=True)
sheet = book.sheet_by_index(0)
dud_types = set([xlrd.XL_CELL_BLANK, xlrd.XL_CELL_EMPTY ])
rowf = [ ty for ty in sheet.row_types(sheet.nrows-1) ]
if all( x in dud_types for x in rowf ):
print('blank row') #do whatever
Now to fulfil your curiosity, I'll try to keep a long story short.
I'm IT 1st line support and one of my hobbies is programming.
Where in neck deep with a stretched out dev firm, our company
is always running before it can crawl. dev firm creates job to collate
data. It breaks with blank rows at end or duplicate rows of excel
sheet. To make my life easier in support I'm creating the script to
do the checking. The dev firm won't touch it, too busy and I'm
not allowed either. Hebce work around.
Thanks again