Are you using any css? or changing layout through html tags in st.markdown(***, unsafe_allow_html=True)? If its not being used, I am not quite sure about this weird behavior…
Positioning can be mentioned through st.markdown. eg) How to center images, Latex header, title etc.?
I am getting center formatted table with those 3 lines of code as expected.
Pls find below
sample.py
import streamlit as st
import pandas as pd
df = pd.read_csv("***.csv")
st.header(‘Statistics’)
st.write(df.describe())
st.write("\n")
With my limited knowledge, these are the only suggestions