'How to create new groups of rows using openpyxl

How to create new groups of rows using openpyxl?

These code works perfect for grouping columns.

planilha1.column_dimensions.group('F','Q', outline_level=1)
planilha1.column_dimensions.group('S','AC', outline_level=1)

But these:

planilha1.row_dimensions.group(9,20, outline_level=1)

return this error message:

AttributeError: 'BoundDictionary' object has no attribute 'group'



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source