Grouping is a mess – though this is really down to the OOXML specification which conflates grouping for outline purposes with that for formatting purposes.
If you want to remove the groups then simplest thing is to delete them from the dimensions.
cds = ws.column_dimensions.keys()
rds = ws.row_dimensions.keys()
for cd in cds:
del ws.column_dimensions[cd]
for rd in rds:
del ws.row_dimensions[rd]
At the moment, there is no "ungroup()" method, though maybe you could submit a PR for one? I never work with groups myself, so I'm not best suited to do this.
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Sengelsweg 34
Düsseldorf
D- 40489
Tel: +49-203-3925-0390
Mobile: +49-178-782-6226