I’ve seen a couple other users with this issue for pandas. It seems to resolve if you allow Community Cloud to use the latest version of Streamlit, but otherwise it’s a bug…
Summary
The below 2 lines of code helped me to index no column in dataframe and apply markdown css to decorate the dataframe
Steps to reproduce
Code snippet for dataframe:
dataframe = dataframe.style.hide_index()
st.write(dataframe.to_html(), unsafe_allow_html=True)
Code snippet for Mark Down Container:
applyCss = """
<style>
/* Table Decoration */
div[data-testid="stMarkdownContainer"] > table {
border-collapse: collapse;
font-size: 0.8em;
font-family:'Ubuntu', sans-serif;
…
After some digging
Seems the way Streamlit Cloud deploys apps using an older pinned version of Streamlit might need a correction? (@StreamlitTeam see amplifying information below and photos) I used OP’s repo to deploy on my own Streamlit Cloud. Initially you can see in the console log that Streamlit installs all of the requirements.txt packages correctly. Then it checks if Streamlit is installed in the environment. (See Photo 1)
Since OP is using 1.18.0, it flags "Streamlit 1.18.0 is present w…
I pinged the Community Cloud team to make sure the bug report is on their radar.
1 Like