-1

StreamlitAPIException: ("Could not convert 'PassengerId' with type str: tried to convert to int64", 'Conversion failed for column Value with type object') solved this err using "C:\Users\your_user\anaconda3\envs\your_env_name\Lib\site-packages\streamlit\config.py" In the config.py locate dataFrameSerialization = "arrow" instead of "arrow" change to "legacy" --> save but the problem is that now getting compare_df output empty. need some help to resolve this issue.

enter image description here

here is the code

if choice == "Modelling": 
    chosen_target = st.selectbox('Choose the Target Column', df.columns)
    if st.button('Run Modelling'): 
        #silent=True
        setup(df, target=chosen_target, verbose = False)
        setup_df = pull()
        st.dataframe(setup_df)
        best_model = compare_models()
        compare_df = pull()
        st.info("model")
        st.dataframe(compare_df)
        best_model
        save_model(best_model, 'best_model')enter image description here

0 Answers0