We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ada5101 commit f1cde08Copy full SHA for f1cde08
pandas/formats/format.py
@@ -1841,7 +1841,11 @@ def _format_regular_rows(self):
1841
for idx, idxval in enumerate(index_values):
1842
yield ExcelCell(self.rowcounter + idx, 0, idxval, header_style)
1843
1844
- for cell in self._generate_body(coloffset=1):
+ coloffset = 1
1845
+ else:
1846
+ coloffset = 0
1847
+
1848
+ for cell in self._generate_body(coloffset):
1849
yield cell
1850
1851
def _format_hierarchical_rows(self):
@@ -1907,7 +1911,7 @@ def _format_hierarchical_rows(self):
1907
1911
indexcolval, header_style)
1908
1912
gcolidx += 1
1909
1913
1910
- for cell in self._generate_body(coloffset=gcolidx):
1914
+ for cell in self._generate_body(gcolidx):
1915
1916
1917
def _generate_body(self, coloffset):
0 commit comments