Repository navigation
[ENH] Different background for upper and lower triangles #1324
Description
Activity
- addedTriage Pending ⚠️New issues that haven't yet been tagged.New issues that haven't yet been tagged.
on Sep 9, 2026 I think it's time to adapt the pandas
Stylerto act upon a Triangle class. We can technically access it by doingTriangle.to_frame().style, but challenges remain:- Highlighting the lower triangle (as you mentioned) without having to define a super-complicated formula, e.g., out of the box
- Likewise, highlighting individual diagonals and styling other triangle components
- Lack of support for origin/development axes
And, check out this feature to concat stylers:
https://pandas.pydata.org/docs/user_guide/style.html#Concatenating-DataFrame-Outputs
What this means is that if we adapt the styler, we can make displays that concat Triangles with each other and on top of tables of patterns - i.e., a unified triangle/patterns exhibit, which means we could make some very slick presentations in the Friedland recreation.
And, check out this feature to concat stylers:
thanks a ton! I'm going to use this right now in chapter 11.
I think it's time to adapt the pandas Styler to act upon a Triangle class.
i think i understand the concept. do you envision stylers to be in addition to or superseding #1281?
- removed a parent issue
on Sep 10, 2026 - added a parent issue
on Sep 10, 2026 Yeah I think we can close that one. It was superseded by #1309, too.
- removedTriage Pending ⚠️New issues that haven't yet been tagged.New issues that haven't yet been tagged.
on Sep 11, 2026 - moved this from Not Ready to Done in Chainladder-Python Project Board
on Sep 21, 2026
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Effort
Scope
Projects
- StatusShow more project fieldsDone
Description
Add an option to differentiate cell shading, such as this exhibit in Friedland
Is your feature request aligned with the scope of the package?
Describe the solution you'd like, or your current workaround.
No response
Do you have any additional supporting notes?
No response
Would you be willing to contribute this ticket?