ENH:Need an option to get html and css separately from pd.DataFrame.to_html . #46946
Labels
Enhancement
IO HTML
read_html, to_html, Styler.apply, Styler.applymap
Needs Triage
Issue that has not been reviewed by a pandas team member
Is your feature request related to a problem?
I recently was writing a script to make html body of a mail to be sent through the gmail api and I was inserting pandas tables in the mail. Surprising to me, the css was missing in those mails. On googling a bit I got to know that these email clients remove the style tags and you need to inline your css if you want to use them. I used the python's css-inline package for now , but I was wondering if I could get the styles separately and thus remove the dependency.
Describe the solution you'd like
I just was thinking to put the css in a separate file and link it.For that I need to put the generated css by
.to_html
to a separate css file.API breaking implications
Describe alternatives you've considered
Yes, I used css-inline to solve the problem temporarily.
Additional context
NA
# Your code here, if applicable
The text was updated successfully, but these errors were encountered: