-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
Changes from 10 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e3f2ea8
Add tests
tehunter 1657735
Add support for "hair" style
tehunter 16258a9
Support excel-specific border styles
tehunter 6626a97
Use black border if styled but color unspecified
tehunter 69d75fa
Added documentation and whatsnew
tehunter 25ad970
Black linter
tehunter e7d7eb0
Merge branch 'main' into excel-border-hair
tehunter d2680ef
Fixed tests for Excel border color fallback
tehunter ec3e137
Revert style.ipynb metadata
tehunter fb0f81c
Fix typo
tehunter cb8068a
Revert border-color default value
tehunter d169d3a
Revert "Fixed tests for Excel border color fallback"
tehunter e632719
Revert border color default tests
tehunter 222cf3a
Updated whatsnew entry
tehunter f7b698c
Merge branch 'main' into excel-border-hair
tehunter 3e65ce7
Add method link to whatsnew
tehunter db09655
Merge branch 'main' into excel-border-hair
tehunter e352a1c
Add tests and fix case sensitivity
tehunter c6e4c5c
Merge branch 'main' into excel-border-hair
tehunter d9fad6d
Apply black linter
tehunter 7c9f7d0
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter a6abe18
Update v1.5.2.rst
tehunter eae63aa
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter e050967
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter 0ae7634
Fix documentation typo
tehunter 69366ae
Test that border shorthand works
tehunter ba774f7
Append Excel styles to shorthand parsing
tehunter 97fd1c1
Update to find_stack_level call
tehunter 84273e3
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter b5773f5
Merge branch 'main' into excel-border-hair
tehunter 8a0f656
Merge remote-tracking branch 'upstream/main' into excel-border-hair
tehunter b6f6212
Update v1.5.3.rst
tehunter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would slightly learn toward moving this to
v1.6.0.rst
as it appears this was "unsupported" rather than "use to work"Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could support either, but to play devil's advocate: pandas never specified that these particular border-styles were supported or unsupported. The closest thing to documentation was this comment block in
_border_style
which implies there is a path to getting the "hair" style (as well as "mediumDashDot", "slantDashDot", "dashDot", and "dashDotDot") when one didn't actually exist:I think the error when using
xlsxwriter
with an unsupported border-style should be fixed in v1.5.1 (i.e.return "none"
at end of function), as the stack location and error message make it very unclear where the user has introduced the error. And if we're fixing that, then it's pretty small step from there to add the support for the other styles.I definitely think I'm onboard with removing the color defaulting portion from a v1.5.1 and moving it to a separate PR for v1.6.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The criteria for whether something should go in a patch or minor version is "did it work before". That is, patch releases should only fix regressions. As this isn't a regression, I'm also +1 on putting this in 1.6.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest that if
border-style
attribute was supported for some styles, in v1.5.0, one should, by extension, assume that all the differentborder-style
values were supported without their explicit documentation. And a failing to not support certain values is either a bug in the code or a bug in the documentation. I support 1.5.1.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay given the reduced scope (removing the color defaulting). I would be okay with 1.5.1