Pandas to_html cannot apply style
zljubisic at gmail.com
zljubisic at gmail.com
Mon Oct 30 06:03:23 EDT 2017
> This is not an in-place operation: it returns a style which you can then
> render.
>
> style = df.style.apply(function2, axis=1)
> html = style.render()
>
> appears to work.
After your suggestion, rows are properly colored, but now I have lost all table lines, font is smaller...
Is there an option for keeping table format, and change only rows background color?
Regards.
More information about the Python-list
mailing list