Skip to content
Merged
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
6 changes: 3 additions & 3 deletions pandas/io/formats/style_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,9 @@ def concatenated_visible_rows(obj):
row_body_headers = [
{
**col,
"display_value": col["display_value"]
if col["is_visible"]
else "",
"display_value": (
col["display_value"] if col["is_visible"] else ""
),
"cellstyle": self.ctx_index[r, c],
}
for c, col in enumerate(row[:index_levels])
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/io/formats/style/test_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,11 @@ def test_maybe_convert_css_to_tuples(self):
expected = []
assert maybe_convert_css_to_tuples("") == expected

#issue #59623
# issue #59623
expected = [("a", "b"), ("c", "url('data:123')")]
assert maybe_convert_css_to_tuples("a:b;c: url('data:123');") == expected

#if no value, return attr and empty string
# if no value, return attr and empty string
expected = [("a", ""), ("c", "")]
assert maybe_convert_css_to_tuples("a:;c: ") == expected

Expand Down