ENH: write Styler rendered output to file · Issue #13379 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@jorisvandenbossche

Description

@jorisvandenbossche

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?

Related to #11610

@TomAugspurger