nurindahpratiwi commited on
Commit
93e514d
·
1 Parent(s): ce08d4c
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -139,9 +139,12 @@ with st.form(key="customer-information"):
139
 
140
  if st.session_state.clicked:
141
  # The message and nested widget will remain on the page
142
- st.write(gender,SeniorCitizen,Partner,Dependents, tenure, PhoneService,MultipleLines,
143
  InternetService,OnlineSecurity,OnlineBackup,DeviceProtection,TechSupport,StreamingTV,StreamingMovies,
144
- Contract,PaperlessBilling,PaymentMethod,MonthlyCharges,TotalCharges)
 
 
 
145
  #predict(gender,SeniorCitizen,Partner,Dependents, tenure, PhoneService,MultipleLines,
146
  #InternetService,OnlineSecurity,OnlineBackup,DeviceProtection,TechSupport,StreamingTV,StreamingMovies,
147
  #Contract,PaperlessBilling,PaymentMethod,MonthlyCharges,TotalCharges)
 
139
 
140
  if st.session_state.clicked:
141
  # The message and nested widget will remain on the page
142
+ list = [gender,SeniorCitizen,Partner,Dependents, tenure, PhoneService,MultipleLines,
143
  InternetService,OnlineSecurity,OnlineBackup,DeviceProtection,TechSupport,StreamingTV,StreamingMovies,
144
+ Contract,PaperlessBilling,PaymentMethod,MonthlyCharges,TotalCharges]
145
+ df = pd.DataFrame(list, columns=("{f}", list))
146
+ st.dataframe(df)
147
+
148
  #predict(gender,SeniorCitizen,Partner,Dependents, tenure, PhoneService,MultipleLines,
149
  #InternetService,OnlineSecurity,OnlineBackup,DeviceProtection,TechSupport,StreamingTV,StreamingMovies,
150
  #Contract,PaperlessBilling,PaymentMethod,MonthlyCharges,TotalCharges)