Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -414,17 +414,18 @@ 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 |
-
|
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
|
426 |
# --------------------------
|
427 |
enhance_section_title("Data Health Dashboard", "π")
|
|
|
428 |
with st.expander("π Data Health Dashboard", expanded=True):
|
429 |
col1, col2, col3 = st.columns(3)
|
430 |
with col1:
|
|
|
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 |
# --------------------------
|
427 |
enhance_section_title("Data Health Dashboard", "π")
|
428 |
+
|
429 |
with st.expander("π Data Health Dashboard", expanded=True):
|
430 |
col1, col2, col3 = st.columns(3)
|
431 |
with col1:
|