How to center dataframe?

Hi, I am loving streamlit! It’s a real game changer for sharing work. Is there a way currently to center a pandas dataframe output by st.write(...)? By default, the dataframe is left aligned and the plots/images are center aligned. I’d like them both center aligned.

1 Like

I agree, I am also looking for a way to optimize it. Why is it done that way in the first place? It does not make sense to me to waste so much space on the left side and even have to have to scroll to the right when there is so much space available.

This worked for me:

st.beta_set_page_config( layout='wide')