I am trying to assign a table id
to the rendered HTML
file generated from pandas
using Styler.render()
After defining the styles
I want for my table in my python
file.
I styled my table below:
styler = df.style.set_table_styles(styles)
Then rendering my styles gives me a dynamic table id
styler.render()
How do I get the table id or assign a table id so that I can use it elsewhere in my code?
I read the following: How to inject a table id into pandas.DataFrame.to_html() output?
But this is not working for me maybe because I am not exporting from from pandas but rather styling and rendering? Kindly advise