What do you mean that this code works in native Python?
if I run this app in native python I get the following as result
This use less CSS style but is the same idea.
Are you saying that if you take
df1.style.set_table_styles(style).to_html()
as a string and save it to its own HTML file, that you can open it and see the data styled correctly?
No I am not saving to html I am trying to display the result. As you can see in the initial screenshot most tags are displaying correctly correctly except ‘td’.
Also doing my research on this issue I found the following discussion and try it but the html code was rendered .
https://discuss.streamlit.io/t/good-looking-table-for-a-streamlit-application-is-anyone-still-using-aggrid/63763/3
Here is wat shows.