Is there a way to get the number of rows and columns present in a .xlsx sheet using openpyxl? In xlrd,
sheet.ncols sheet.nrows
will give the number of columns and rows. Is there such a method in openpyxl?
If sheetis the worksheet you want to find, the number of rows and columns you can do:
sheet
rows = sheet.max_row column = sheet.max_column
Source: https://habr.com/ru/post/1628828/More articles:Когда мы используем AsyncContext, упомянутый в спецификации servlet3, как долго HTTP-соединение остается открытым? - javaHow can I use WP_Query to display selected category entries from a custom post? - phpEnumerations in Python: how to enforce method arguments - pythonИнструменты: overrideLibrary не работает - androidChoose a basic template for each site - wagtailHow to implement a CString hash function for use with std :: unordered_map? - c ++Переход по одному методу в отладчик, но продолжение нормальной отладки после - debuggingInvalid reaction state value - javascriptHow to change brush color with Pen in DrawingGroup.Children tag - wpfUnable to create private classes with the same name in different modules - kotlinAll Articles