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.


1 Like