I use xlrd to read data from excel files.
For integers stored in the files, let’s say 63, the xlrd interprets it as 63.0 of type number.
Why can’t xlrd recognize 63 as an integer?
Assume sheet.row(1)[0].value gives us 63.0. How can I convert it back to 63.
Looking at the different cell types in the documentation, it seems that there isn’t any integer type for cells, they’re just floats. Hence, that’s the reason you’re getting floats back even when you wrote an integer.
To convert a float to an integer just use
int: