Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,6 +71,13 @@ if uploaded_file is not None:
|
|
| 71 |
# Show cleaned dataset
|
| 72 |
st.write("Cleaned Dataset:")
|
| 73 |
st.dataframe(df)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
target = st.selectbox("Select Target Variable", df.columns)
|
| 76 |
features = [col for col in df.columns if col != target]
|
|
|
|
| 71 |
# Show cleaned dataset
|
| 72 |
st.write("Cleaned Dataset:")
|
| 73 |
st.dataframe(df)
|
| 74 |
+
|
| 75 |
+
st.download_button(
|
| 76 |
+
label="Download Cleaned Dataset",
|
| 77 |
+
data=to_excel(df), # The cleaned dataset is 'df'
|
| 78 |
+
file_name="cleaned_dataset.xlsx",
|
| 79 |
+
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
| 80 |
+
)
|
| 81 |
|
| 82 |
target = st.selectbox("Select Target Variable", df.columns)
|
| 83 |
features = [col for col in df.columns if col != target]
|