Having streamlit app that display expanders that includes data from a dataframe.
Need to change the background color of the expanders based on the value existing in column occupation
All the expanders that have as occupation
teacher get the background color green
Engineer get the background color red
And so on…
All the displayed expanders are matching while what i want is to differ between them based on the occupation.
- Streamlit version: 1.18
- Python version: 3.10