CosmickVisions commited on
Commit
cf40f7a
·
verified ·
1 Parent(s): c767793

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -411,16 +411,9 @@ elif app_mode == "Data Cleaning":
411
  # Initialize session state (only if it's not already there)
412
  if 'data_versions' not in st.session_state:
413
  st.session_state.data_versions = [st.session_state.raw_data.copy()]
414
- if 'cleaned_data' not in st.session_state: #Added a conditional value
415
  st.session_state.cleaned_data = st.session_state.raw_data.copy()
416
 
417
- # Check and copy cleaned data
418
- if st.session_state.cleaned_data is not None:
419
- df = st.session_state.cleaned_data.copy()
420
- else:
421
- st.warning("No cleaned data available. Please perform data cleaning first.")
422
- st.stop() # Ensure the rest of the code doesn't execute if there's no cleaned data
423
-
424
  # --------------------------
425
  # Data Health Dashboard
426
  # --------------------------
 
411
  # Initialize session state (only if it's not already there)
412
  if 'data_versions' not in st.session_state:
413
  st.session_state.data_versions = [st.session_state.raw_data.copy()]
414
+ if 'cleaned_data' not in st.session_state: # Added a conditional value
415
  st.session_state.cleaned_data = st.session_state.raw_data.copy()
416
 
 
 
 
 
 
 
 
417
  # --------------------------
418
  # Data Health Dashboard
419
  # --------------------------