Skip to content

Commit

Permalink
BUG: fix for bug 16493
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Prinoth authored and Christian Prinoth committed May 25, 2017
1 parent e41fe7f commit a40820d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/io/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ def _column_header():
self.write_tr(col_row, indent, self.indent_delta, header=True,
align=align)

if self.fmt.has_index_names and self.fmt.index:
if self.fmt.has_index_names and self.fmt.index and self.show_index_names:
row = ([x if x is not None else ''
for x in self.frame.index.names] +
[''] * min(len(self.columns), self.max_cols))
Expand Down

0 comments on commit a40820d

Please sign in to comment.