Skip to content

Sparsify MultiIndex in Styler #21155

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

Closed
reedjosh opened this issue May 21, 2018 · 4 comments
Closed

Sparsify MultiIndex in Styler #21155

reedjosh opened this issue May 21, 2018 · 4 comments
Labels
Duplicate Report Duplicate issue or pull request

Comments

@reedjosh
Copy link

Merge Duplicate Cells for Easier Reading as a Styler Option

image

At work we generate reports in Bi4 and via Python. In the Python reports we write, we use the new Styler object to generate conditionally formatted HTML.

The generated HTML would be much more readable if there was a way to conditionally merge cells as in the Bi4 report shown above. I really hate Bi4, but the reports do look nicer.

If this already exists, I apologize, and please kindly point me to the documentation. If not, then thank you for considering this enhancement request.

Best,

- Joshua

@TomAugspurger TomAugspurger changed the title Enhancement Request - Merge Duplicate Cells Sparsify MultiIndex in Styler May 21, 2018
@TomAugspurger
Copy link
Contributor

Hmm, I think this is done actually? #13775

Can you set the levels you want sparsified into a MultiIndex and render that?

@TomAugspurger
Copy link
Contributor

Let us know if that isn't what you had in mind.

@TomAugspurger TomAugspurger added the Duplicate Report Duplicate issue or pull request label May 21, 2018
@reedjosh
Copy link
Author

Hey, it is basically what I have in mind, but it appears to be not usable with a Styler object.

image

image

Am I doing something wrong? Is this something that's not implemented?

Thanks Again!

@TomAugspurger
Copy link
Contributor

TomAugspurger commented May 25, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants