-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[BUG] merge_duplicate_headers breaks style_header_conditional #1877
Comments
I'm seeing the "desired highlighting" when I try the code above now: |
Not sure if i should post it here or create something new but i think it falls into the same category. Actually i still get bugs with using merge_duplicate_headers=True and style_cell_conditional. I am only on 2.18.2 yet but as mentioned it should be fixed and i see no changes in the newer versions. Here is a minimal example where it happens with the most upper right column border. For more columns and more thick lines it happens more often.
|
Describe your context
Environment:
Probably not important:
Describe the bug
When I run the below code which uses
style_header_conditional
to highlight columns1_1a
and1_1b
, it incorrectly highlights header cells1b
,2
and2a
.Expected behavior
It should highlight the cells corresponding to the specified columns, i.e.
1
,1a
and1b
(i.e. the same cells it would highlight if I removemerge_duplicate_headers=True
).Note: I understand that when specifying some, but not all, of the columns which are included in a merge, there may be a few reasonable ways that can be displayed. But in this case the expected behavior seems quite obvious and the observed behavior is clearly wrong.
Code
Screenshots
Actual highlighting:
Desired highlighting:
The text was updated successfully, but these errors were encountered: