Skip to content

Getting df_compare output empty #6

@Umar-cs

Description

@Umar-cs

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.
if choice == "Modelling": chosen_target = st.selectbox('Choose the Target Column', df.columns) if st.button('Run Modelling'): 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')
Screenshot 2023-08-06 160922

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions