AMKhakbaz commited on
Commit
04c4d28
·
verified ·
1 Parent(s): 03b27a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -580,11 +580,14 @@ st.image("Insightzen.png", width=600)
580
  df = upload_and_select_dataframe()
581
 
582
  try:
583
- st.subheader("Data preview")
584
- st.dataframe(df.head())
585
-
586
- cols = edit_strings(df.columns)
587
- cols = sorted(list(set(cols)))
 
 
 
588
 
589
  main_option = st.selectbox("Please select an option:", ["Select a Task","Tabulation", "Funnel Analysis", "Segmentation Analysis", "Hypothesis test", "Machine Learning", "Sample Size Calculator" ,"Coding", "AI Chat"])
590
 
 
580
  df = upload_and_select_dataframe()
581
 
582
  try:
583
+ try:
584
+ st.subheader("Data preview")
585
+ st.dataframe(df.head())
586
+
587
+ cols = edit_strings(df.columns)
588
+ cols = sorted(list(set(cols)))
589
+ except:
590
+ pass
591
 
592
  main_option = st.selectbox("Please select an option:", ["Select a Task","Tabulation", "Funnel Analysis", "Segmentation Analysis", "Hypothesis test", "Machine Learning", "Sample Size Calculator" ,"Coding", "AI Chat"])
593