This is the error that I 'm getting when I deploy my app on Streamlit Cloud
Serialization of dataframe to Arrow table was unsuccessful due to: ("Expected bytes, got a 'int' object", 'Conversion failed for column NAME with type object'). Applying automatic fixes for column types to make the dataframe Arrow-compatible.
#! /usr/bin/env python3
import streamlit as st
import pandas as pd
if __name__ == '__main__':
st.dataframe(pd.DataFrame.from_dict({'a': 1, 'b': 'foobar'}, orient='index'))
How to avoid those warnings, when I know my Df is not meant to have same datatype across all rows?