I have styled my dataframe using the below code:
th_props = [
('font-size', '14px'),
('text-align', 'center'),
('font-weight', 'bold'),
('color', '#6d6d6d'),
('background-color', '#f7ffff')
]
td_props = [
('font-size', '12px')
]
styles = [
dict(selector="th", props=th_props),
dict(selector="td", props=td_props)
]
df2=outputdframe.style.set_properties(**{'text-align': 'left'}).set_table_styles(styles)
But it doesn't work on streamlit. So, any idea how to style the dataframe on streamlit?
Can anyone help me?