openpyxl
seems to be a great method for using Python to read Excel files, but I've run into a constant problem. I need to detect whether a cell is empty or not, but can't seem to compare any of the cell properties. I tried casting as a string and using ""
but that didn't work. The type of cell when it is empty is None
, or NoneType
but I can't figure out how to compare an object to that.
Suggestions? I understand openpyxl
is under development, but maybe this is more a general Python problem.