Python 3.5.2 , openpyxl v 2.4.1 ,get_highest_row() , AttributeError

Python 3.5.2 , openpyxl v 2.4.1 ,get_highest_row() , AttributeError

Check out enigmas answer

wb = load_workbook(path, use_iterators=True)
sheet = wb.worksheets[0]

row_count = sheet.max_row
column_count = sheet.max_column

I think that method is depreciated,
In the newer version of openpyxl library
Visit https://pypi.org/project/openpyxl/
you can use this method to get the Row Count and Column count

#to get the row count
sheet.max_row
#to get the column count
sheet.max_column

Python 3.5.2 , openpyxl v 2.4.1 ,get_highest_row() , AttributeError

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *