Skip to content

Commit a40820d

Browse files
Christian PrinothChristian Prinoth
Christian Prinoth
authored and
Christian Prinoth
committed
BUG: fix for bug 16493
1 parent e41fe7f commit a40820d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/formats/format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ def _column_header():
12921292
self.write_tr(col_row, indent, self.indent_delta, header=True,
12931293
align=align)
12941294

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

0 commit comments

Comments
 (0)