Update pages/6.Data Collection.py
Browse files- pages/6.Data Collection.py +12 -0
pages/6.Data Collection.py
CHANGED
@@ -51,6 +51,18 @@ if data_type == "Structured":
|
|
51 |
- **File Corruption**: Use repair tools or convert to a compatible format like CSV.
|
52 |
- **Large Files**: Process the file in chunks using `pandas` or optimize it using external tools.
|
53 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
elif format_selected == "CSV":
|
56 |
st.write("#### CSV Format")
|
|
|
51 |
- **File Corruption**: Use repair tools or convert to a compatible format like CSV.
|
52 |
- **Large Files**: Process the file in chunks using `pandas` or optimize it using external tools.
|
53 |
""")
|
54 |
+
# Downloadable Guide Button
|
55 |
+
st.markdown("### Download Coding Guide:")
|
56 |
+
if st.button("Download Excel Guide"):
|
57 |
+
# Provide a downloadable file
|
58 |
+
file_path = "Excel_guide.ipynb" # Ensure this file exists in the app directory
|
59 |
+
with open(file_path, "rb") as file:
|
60 |
+
st.download_button(
|
61 |
+
label="Download Excel Guide",
|
62 |
+
data=file,
|
63 |
+
file_name="Excel_guide.ipynb",
|
64 |
+
mime="application/octet-stream",
|
65 |
+
)
|
66 |
|
67 |
elif format_selected == "CSV":
|
68 |
st.write("#### CSV Format")
|