-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
EnhancementIO HTMLread_html, to_html, Styler.apply, Styler.applymapread_html, to_html, Styler.apply, Styler.applymapStylerconditional formatting using DataFrame.styleconditional formatting using DataFrame.style
Milestone
Description
I was answering a question on conditional formatting of html on SO.
So the OP was using to_html but wanted conditional formatting. Therefore, I pointed to Styler to do this more easily than using the formatters argument in to_html, but when you have a Styler object, there is no longer a to_html method to write the result to a html file.
Of course you can write the result of render manually to a file, but would this ability be a desired enhancement?
- Maybe we can add a
to_filemethod toStyler? (to_htmlseems a bit specific, if we also want to use the Styler for other formats such as latex in the future) - Alternatively, we could add a
styleoption into_htmlwhere you can pass a Styler object?
Related to #11610
Metadata
Metadata
Assignees
Labels
EnhancementIO HTMLread_html, to_html, Styler.apply, Styler.applymapread_html, to_html, Styler.apply, Styler.applymapStylerconditional formatting using DataFrame.styleconditional formatting using DataFrame.style