hi, i am trying to get a dataframe with columns center so I did:
st.dataframe(sum_stat_perf
.style
.set_properties(**{"background-color": "white", "color": "black", "border-color": "black", 'text-align': 'center'})
.format("{:.2f}%", subset=(['Taux sans risque', 'Ann. return', '% Rdt>0', 'Average up', 'Average Down',
'Perf 2023', 'Perf 2022', 'Perf 2021', 'Perf 1 an', 'Perf 3 ans', 'Perf 5 ans'],
slice(None))
)
.format("{:.2f}%", subset=(['Up ratio', 'Down ratio'],
['portef', 'indice'])
)
.format("{:.2f}", subset=(['Skewness', 'kurtosis'],
slice(None))
),
use_container_width=True,
height=660
)
but it seems that the 'text-align': 'center'
did nothing.
Thx for your help.