Pandas DataFrame.style not rendering in st.experimental_data_editor

I have a Pandas dataframe and I want to color just the first column using the built-in style of Pandas. I found a piece of code in the accepted answer of this Stack Overflow post: here.
However, when I pass the resulting Pandas Styler object to st.experimental_data_editor , the color is not visible even though the documentation says that a pandas.io.formats.style.Styler object can be passed to this function.

2 Likes

This was the answer to a similar question a few weeks go, I hope it helps:

2 Likes