streamlit.errors.StreamlitAPIException on displaying transposed dataframe

st.write(displayresult) can display the dataframe. But when it is transposed, there is an error. Any work around?
It is working on my localhost, and only failing on the cloud.

Hi @morrise, welcome to the Streamlit community!

Can you provide a link to your GitHub repo?