I have this working:
address = []
for row in ws.iter_rows(row_offset=4,column_offset=3):
if len(row) > 0:
cell = row[2]
if cell.internal_value is not None:
*something here, append appropriate cell values to address*
print address
return address
Which will successfully go through a column in an excel spreadsheet and get every nonempty cell. At the asterisks, though, I am unsure how to go through the output and pull out only the numbers. I know that might be odd to read through, but the numbers I need are the "1.0, 2.0, 3.0, 4.0, etc". All of the other parts, and the actual numbers themselves, are subject to change as I read in different spreadsheets, but they will be in the same format.
So what I need to know is how i would go through this list and get rid of everything that isnt a decimal number, and ideally convert those decimals into integers.
Im also sure that there is a good way to do this with list comprehension, but I've only been programmning in python for a week so Im not sure how to really do that.
Sorry if this is confusing, and thanks for any help in advance.