I want to print only the rows of a specifig column, let's say colmn B, so far so good:
import xlrd
file_location = "/home/myuser/excel.xls"
workbook = xlrd.open_workbook(file_location)
sheet = workbook.sheet_by_index(0)
data = [[sheet.cell_value(r, c) for c in range(sheet.ncols)] for r in range(sheet.nrows)]
for r in data:
print r[1]
Now I want to print out only those cell values, which have a yellow colored background. I found this link but failed to adept it to my code. Could anybody help me out?