Skip to content
Merged
Changes from 1 commit
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
Next Next commit
BUG: fix styler cell_ids arg so that blank style is ignored on False
  • Loading branch information
attack68 committed Aug 6, 2020
commit 72c99828fd649d3767026ca02b11059ce310cdbf
2 changes: 1 addition & 1 deletion pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def format_attr(pair):
"is_visible": (c not in hidden_columns),
}
# only add an id if the cell has a style
if self.cell_ids or not (len(ctx[r, c]) == 1 and ctx[r, c][0] == ""):
if self.cell_ids or (r, c) in ctx:
row_dict["id"] = "_".join(cs[1:])
row_es.append(row_dict)
props = []
Expand Down