CosmickVisions commited on
Commit
961fc2c
·
verified ·
1 Parent(s): ef6a485

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -720,24 +720,24 @@ elif app_mode == "Data Cleaning":
720
 
721
 
722
 
723
- # --------------------------
724
- # Cleaned Data Preview
725
- # --------------------------
726
- if st.session_state.get("cleaned_data") is not None:
727
- enhance_section_title("Cleaned Data Preview", "✨")
728
- with st.expander("✨ Cleaned Data Preview", expanded=True):
729
- st.dataframe(st.session_state.cleaned_data.head(), use_container_width=True)
730
-
731
- enhance_section_title("Export Cleaned Data", "💾")
732
- with st.expander("💾 Export Cleaned Data", expanded=True):
733
- st.write("You can download the cleaned data as a CSV file.")
734
- csv = df.to_csv(index=False).encode('utf-8')
735
- st.download_button(
736
- label="📥 Download Cleaned Data as CSV",
737
- data=csv,
738
- file_name='cleaned_data.csv',
739
- mime='text/csv',
740
- )
741
 
742
 
743
 
 
720
 
721
 
722
 
723
+ # --------------------------
724
+ # Cleaned Data Preview
725
+ # --------------------------
726
+ if st.session_state.get("cleaned_data") is not None:
727
+ enhance_section_title("Cleaned Data Preview", "✨")
728
+ with st.expander("✨ Cleaned Data Preview", expanded=True):
729
+ st.dataframe(st.session_state.cleaned_data.head(), use_container_width=True)
730
+
731
+ enhance_section_title("Export Cleaned Data", "💾")
732
+ with st.expander("💾 Export Cleaned Data", expanded=True):
733
+ st.write("You can download the cleaned data as a CSV file.")
734
+ csv = df.to_csv(index=False).encode('utf-8')
735
+ st.download_button(
736
+ label="📥 Download Cleaned Data as CSV",
737
+ data=csv,
738
+ file_name='cleaned_data.csv',
739
+ mime='text/csv',
740
+ )
741
 
742
 
743