Table column in bold

I am displaying a data frame, asset, like this:

st.dataframe(asset)  

How can I make the columns bold?

Hi @anix_anirban,

Are you looking to change the column names in your pandas dataframe to display boldfont when you use the st.dataframe function? If so there is currently no way to change the formatting that st.dataframe displays.
Another slightly different display option is to use table:

st.table(pandas_data.iloc[0:5])

which gives:

Otherwise, you will need to use the โ€˜CSS hackโ€™:

Happy Streamlit-ing!
Marisa

I would take it as โ€œnot possibleโ€. Thanks for confirming :slight_smile:

1 Like