CosmickVisions commited on
Commit
44419ce
·
verified ·
1 Parent(s): cf0a8c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -414,7 +414,12 @@ elif app_mode == "Data Cleaning":
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
- df = st.session_state.cleaned_data.copy()
 
 
 
 
 
418
 
419
  # --------------------------
420
  # Data Health Dashboard
 
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
+
423
 
424
  # --------------------------
425
  # Data Health Dashboard