I'm using the bootstrap.min.css for stylesheets in my Flask app and am styling the data tables outputted by Pandas in the following manner:
result = pd.DataFrame.from_dict(result, orient='index', columns = [var2use]).to_html(classes='table table-striped table-hover', header = "true", justify = "center")
Everything is working very well and stylings are applied as hoped. One thing I cannot figure out is how to also add in the .thead-light or dark styling to this?
I'm using these as resources
https://getbootstrap.com/docs/4.4/content/tables/
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.DataFrame.to_html.html
I've tried adding to this part classes='table table-striped table-hover' something like classes='table table-striped table-hover thead-light' but that styling doesn't appear.
Any suggestions on how to style my table so the header has that styling applied in the Flask app (hopefully without having to write additional .css)?