I'm trying to style some rows of a Pandas Dataframe a certain way (depending on an external factor) using df.to_html() and some CSS rules, but is there a way to give rows HTML IDs using Pandas, or will I have to deal with the raw HTML output of to_html().
More details: I have a Pandas Dataframe that is the result of an SQL query. It will be compared with previous query results and the table will be sent out as an email. I want to highlight the rows of the dataframe that are new. I'm thinking of doing this by inserting CSS rules that either apply to the IDs of specific rows in the resultant HTML table, or by attaching a class to these rows.