I am unable to get integer number as text from .xls file via xlrd. I have the following data in my cell:
20
and the cell type in Excel is "Text"
Also I have the following code to read this value:
some_value = sheet.cell(row, column).value.encode('utf8')
But it gives me
AttributeError: 'float' object has no attribute 'encode'
sheet.cell(row, column).ctype
returns 1. According to the documentation, it means "a Unicode string"
What am I doing wrong? How can I fix it?
Thanks in advance.