Skip to content

Commit 3ff71da

Browse files
author
y-p
committed
BUG: HTMLFormatter does not die on unicode frame GH6098
1 parent ff5b29e commit 3ff71da

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/release.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Bug Fixes
155155
- Regression in ``.get(None)`` indexing from 0.12 (:issue:`5652`)
156156
- Subtle ``iloc`` indexing bug, surfaced in (:issue:`6059`)
157157
- Bug with insert of strings into DatetimeIndex (:issue:`5818`)
158+
- Fixed unicode bug in to_html/HTML repr (:issue:`6098`)
158159

159160
pandas 0.13.0
160161
-------------

pandas/core/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ def _column_header():
767767
levels)):
768768
name = self.columns.names[lnum]
769769
row = [''] * (row_levels - 1) + ['' if name is None
770-
else str(name)]
770+
else com.pprint_thing(name)]
771771

772772
tags = {}
773773
j = len(row)

0 commit comments

Comments
 (0)