Update pages/Life_cycle_of_ML.py
Browse files- pages/Life_cycle_of_ML.py +16 -0
pages/Life_cycle_of_ML.py
CHANGED
|
@@ -123,6 +123,22 @@ print(df_sheet1.head())
|
|
| 123 |
st.code("""for chunk in pd.read_excel(file_path, chunksize=1000):
|
| 124 |
process(chunk) # Process each chunk separately
|
| 125 |
""", language='python')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
|
| 128 |
# CSV Button Section
|
|
|
|
| 123 |
st.code("""for chunk in pd.read_excel(file_path, chunksize=1000):
|
| 124 |
process(chunk) # Process each chunk separately
|
| 125 |
""", language='python')
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
# Path to the existing PDF file
|
| 129 |
+
pdf_file_path = "Handling Excel.pdf"
|
| 130 |
+
|
| 131 |
+
# Read the PDF file in binary mode
|
| 132 |
+
with open(pdf_file_path, "rb") as pdf_file:
|
| 133 |
+
pdf_data = pdf_file.read()
|
| 134 |
+
|
| 135 |
+
# Create a download button
|
| 136 |
+
st.download_button(
|
| 137 |
+
label="Download PDF",
|
| 138 |
+
data=pdf_data,
|
| 139 |
+
file_name="Reading Excel Files using Python.pdf",
|
| 140 |
+
mime="application/pdf",
|
| 141 |
+
)
|
| 142 |
|
| 143 |
|
| 144 |
# CSV Button Section
|