79143516

Date: 2024-10-31 04:40:42
Score: 0.5
Natty:
Report link

A previous solution already proposed hide_index=True but it was incomplete. I tested this with Streamlit 1.39:

Here's the demo

Result:

enter image description here

Code:

import streamlit as st
import pandas as pd

df = pd.DataFrame({'N':[10, 20, 30], 'mean':[4.1, 5.6, 6.3]})
styler = df.style.format(subset=['mean'], decimal=',', precision=2).bar(subset=['mean'], align="mid")
st.dataframe(styler, hide_index=True)

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Eduardo