Table column in bold

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


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:


which gives:

Otherwise, you will need to use the ‘CSS hack’:

Happy Streamlit-ing!

I would take it as “not possible”. Thanks for confirming :slight_smile:

1 Like