Skip to content

Fix Excel-specific border styles #48660

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

Merged
merged 32 commits into from
Nov 29, 2022
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e3f2ea8
Add tests
tehunter Sep 20, 2022
1657735
Add support for "hair" style
tehunter Sep 20, 2022
16258a9
Support excel-specific border styles
tehunter Sep 20, 2022
6626a97
Use black border if styled but color unspecified
tehunter Sep 20, 2022
69d75fa
Added documentation and whatsnew
tehunter Sep 20, 2022
25ad970
Black linter
tehunter Sep 20, 2022
e7d7eb0
Merge branch 'main' into excel-border-hair
tehunter Sep 20, 2022
d2680ef
Fixed tests for Excel border color fallback
tehunter Sep 20, 2022
ec3e137
Revert style.ipynb metadata
tehunter Sep 22, 2022
fb0f81c
Fix typo
tehunter Sep 22, 2022
cb8068a
Revert border-color default value
tehunter Sep 26, 2022
d169d3a
Revert "Fixed tests for Excel border color fallback"
tehunter Sep 26, 2022
e632719
Revert border color default tests
tehunter Sep 27, 2022
222cf3a
Updated whatsnew entry
tehunter Sep 27, 2022
f7b698c
Merge branch 'main' into excel-border-hair
tehunter Sep 27, 2022
3e65ce7
Add method link to whatsnew
tehunter Sep 28, 2022
db09655
Merge branch 'main' into excel-border-hair
tehunter Sep 28, 2022
e352a1c
Add tests and fix case sensitivity
tehunter Sep 28, 2022
c6e4c5c
Merge branch 'main' into excel-border-hair
tehunter Sep 28, 2022
d9fad6d
Apply black linter
tehunter Sep 28, 2022
7c9f7d0
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter Nov 2, 2022
a6abe18
Update v1.5.2.rst
tehunter Nov 2, 2022
eae63aa
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter Nov 10, 2022
e050967
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter Nov 10, 2022
0ae7634
Fix documentation typo
tehunter Nov 10, 2022
69366ae
Test that border shorthand works
tehunter Nov 10, 2022
ba774f7
Append Excel styles to shorthand parsing
tehunter Nov 10, 2022
97fd1c1
Update to find_stack_level call
tehunter Nov 10, 2022
84273e3
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter Nov 11, 2022
b5773f5
Merge branch 'main' into excel-border-hair
tehunter Nov 14, 2022
8a0f656
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter Nov 23, 2022
b6f6212
Update v1.5.3.rst
tehunter Nov 23, 2022
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
Add tests
  • Loading branch information
tehunter committed Sep 20, 2022
commit e3f2ea8f0a0c0f9ff7862c6e7a0d1f8998d467ef
13 changes: 13 additions & 0 deletions pandas/tests/io/excel/test_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,19 @@ def test_styler_to_excel_unstyled(engine):
["border", "left", "color", "rgb"],
{"xlsxwriter": "FF111222", "openpyxl": "00111222"},
),
# Border styles
(
"border-left-style: hair; border-left-color: black",
["border", "left", "style"],
"hair"
),
("border-left-style: hair;", ["border", "left", "style"], "hair"),
# CSS should default to black if style provided w/o color
(
"border-left-style: hair;",
["border", "left", "color", "rgb"],
{"xlsxwriter": "FF000000", "openpyxl": "00000000"},
),
]


Expand Down