How to change column name in the predict table?

Iโ€™m new using streamlit and i dont know how to change the name of the columns
below the sub header result


Hi @Isaac_Medina, welcome to the Streamlit community!

If Iโ€™m understanding whatโ€™s happening here, your call to resultado=classifier.predict(df) is returning a dataframe, but it doesnโ€™t know how to name the columns. If you set resultado.columns = ["col1", "col2"...], then I think that will get you the column names in your st.table call.

Best,
Randy

1 Like