Why? pd.melted or np.transposed df isn't applied?

I have a df.
I want to melt or transpose it and use st.table() or st.dataframe() or st.write()
but it doesn’t work. how can i do?