Is there any method to get the number of rows and columns present in .xlsx sheet using openpyxl ? In xlrd,
sheet.ncols
sheet.nrows
would give the column and row count. Is there any such method in openpyxl ?
Given a variable sheet
, determining the number of rows and columns can be done in one of the following two ways:
rows = sheet.nrows
columns = sheet.ncols
rows = sheet.max_row
columns = sheet.max_column