Styling dataframe

I can’t apply this styling ( figure 1) in my dataframe with st.write() or st.table().
Please note I’m able to apply this styling in my jupyter notebook without any error.

ImportError: cannot import name 'range' from 'pandas.compat' (/opt/Python/3.7.3/lib/python3.7/site-packages/pandas/compat/__init__.py)

I have already test with this piece of code :slight_smile: https://github.com/streamlit/streamlit/blob/develop/e2e/scripts/st_dataframe.py

I have the same behavior

It’s seems to be related to the apply method(), I found an discussion about this error in Slack Overflow.
I interrupt the web appli, and I relaunched it : the error is gone, but the styling format is not taken into account.