Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
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
|