Skip to content

BUG: in HTMLFormatter._write_header(), str() fails on column names in unicode #6099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/source/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down