From c4c6bdd88200f7b7448c4dd8223fa1c37ee7066c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alain=20Cle=CC=81ment-Pavon?= Date: Sat, 25 Jan 2014 21:14:27 +0100 Subject: [PATCH 1/2] BUG: str() fails on column names in unicode --- pandas/core/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/format.py b/pandas/core/format.py index fce0ef6a27889..fa2b464c6bfec 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -767,7 +767,7 @@ def _column_header(): levels)): name = self.columns.names[lnum] row = [''] * (row_levels - 1) + ['' if name is None - else str(name)] + else name] tags = {} j = len(row) From 95757bf68e6a83cf2ebcb278d161094c44f6ba6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alain=20Cle=CC=81ment-Pavon?= Date: Sat, 25 Jan 2014 22:29:29 +0100 Subject: [PATCH 2/2] Update release notes --- doc/source/release.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/release.rst b/doc/source/release.rst index 0db9023301dab..7ff6951ee7fa9 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -149,6 +149,7 @@ Bug Fixes - Regression in ``.get(None)`` indexing from 0.12 (:issue:`5652`) - Subtle ``iloc`` indexing bug, surfaced in (:issue:`6059`) - Bug with insert of strings into DatetimeIndex (:issue:`5818`) + - Bug in ``HTMLFormatter._write_header`` for column names in unicode (:issue:`6098`) pandas 0.13.0 -------------