Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -239,8 +239,8 @@ def main():
|
|
239 |
# Add the "Export to CSV" button in the first column
|
240 |
with button_row[0]:
|
241 |
if st.button("Export to CSV"):
|
242 |
-
|
243 |
-
|
244 |
|
245 |
# Create a link to download the CSV file
|
246 |
st.download_button(
|
|
|
239 |
# Add the "Export to CSV" button in the first column
|
240 |
with button_row[0]:
|
241 |
if st.button("Export to CSV"):
|
242 |
+
# Export the DataFrame to CSV
|
243 |
+
csv_data = df.to_csv(index=False)
|
244 |
|
245 |
# Create a link to download the CSV file
|
246 |
st.download_button(
|