Skip to content

Commit

Permalink
FIX column offset incorrect in refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Feb 28, 2017
1 parent ada5101 commit f1cde08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pandas/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,11 @@ def _format_regular_rows(self):
for idx, idxval in enumerate(index_values):
yield ExcelCell(self.rowcounter + idx, 0, idxval, header_style)

for cell in self._generate_body(coloffset=1):
coloffset = 1
else:
coloffset = 0

for cell in self._generate_body(coloffset):
yield cell

def _format_hierarchical_rows(self):
Expand Down Expand Up @@ -1907,7 +1911,7 @@ def _format_hierarchical_rows(self):
indexcolval, header_style)
gcolidx += 1

for cell in self._generate_body(coloffset=gcolidx):
for cell in self._generate_body(gcolidx):
yield cell

def _generate_body(self, coloffset):
Expand Down

0 comments on commit f1cde08

Please sign in to comment.