WIP: Custom HTML Rendering for Nested Columns #103
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.
Change Description
Resolves #41 .
Solution Description
This is a WIP attempt at #41. We're able to modify the representation via the Pandas Styler object, however in my current implementation the styler has some tradeoffs with using the default dataframe representation. Particularly the behavior around how tables are truncated is different (large tables are not truncated down to the first and last 5 entries, instead always truncating to the first
max_rows
rows. In addition, the truncated df does not preview the shape of the dataframe which feels like a big loss. Overall I'm not happy with where this is currently, but I will keep looking to see if the styler can be brought closer in line with the default pandas behavior. It's possible there are other implementations that might be more appropriate than this approach (can we modify the series styling itself?)