I had no problem with the alignment in the old version but when I upgraded to the new version I saw this happen. I tried the following 3 different approach below the dataframe but none of them fixes the problem. Is there any way to work around it?

#Sets df size with width 1000 and height 300, but width has a limited range
st.dataframe(df, 1000, 300)
st.dataframe(df, use_container_width=True)
st.write(df, use_container_width=True)
