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
- python 3.x – Pyspark Unsupported literal type class java.util.ArrayList
- What is the Java equivalent of a Python Dictionary
- Is there if .. not in .. in Javascript? I use it in Python but not sure if Javascript has the similar syntax
- python – jupyter notebooks: How to enable widget javascript?
- Differences in RegEx syntax between Python and Java
- Javascript equivalent of Pythons zip function
- What is the Python equivalent of Comparables in Java?