How do I apply 2 styles to a dataframe?
t = st.empty()
t.dataframe(df.style.apply(highlight_cells, axis=None) , width=1024, height=768 )
works and so does
t = st.empty()
t.dataframe(df.style.format(subset=[โopenโ], formatter="{:.2f}"))
How do I apply both? This doesnt work:
t = st.empty()
df.style.apply(highlight_cells, axis=None)
t.dataframe(df.style.format(subset=[โopenโ], formatter="{:.2f}"))
neither does:
t = st.empty()
df.style.format(subset=[โopenโ], formatter="{:.2f}")
t.dataframe(df.style.apply(highlight_cells, axis=None) )
or
t = st.empty()
df.style.format(subset=[โopenโ], formatter="{:.2f}")
df.style.apply(highlight_cells, axis=None)
t.dataframe(df )
What is this style object? Why doe you need to run it inside st.dataframe() ? How can you then run multiple styles?