Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -32,8 +32,8 @@ if menu == "Train Model":
|
|
| 32 |
st.pyplot(fig)
|
| 33 |
|
| 34 |
st.subheader("Model Training")
|
| 35 |
-
target_column = st.selectbox("Select Target Column", options=data.columns, index=data.columns.get_loc('churn') if 'churn' in data.columns else 0)
|
| 36 |
-
feature_columns = st.multiselect("Select Feature Columns", options=[col for col in data.columns if col != target_column])
|
| 37 |
|
| 38 |
if feature_columns and target_column:
|
| 39 |
# X = pd.get_dummies(data[feature_columns])
|
|
|
|
| 32 |
st.pyplot(fig)
|
| 33 |
|
| 34 |
st.subheader("Model Training")
|
| 35 |
+
# target_column = st.selectbox("Select Target Column", options=data.columns, index=data.columns.get_loc('churn') if 'churn' in data.columns else 0)
|
| 36 |
+
# feature_columns = st.multiselect("Select Feature Columns", options=[col for col in data.columns if col != target_column])
|
| 37 |
|
| 38 |
if feature_columns and target_column:
|
| 39 |
# X = pd.get_dummies(data[feature_columns])
|