Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1168,11 +1168,14 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
1168 |
|
1169 |
limited_data_without_first_column.insert(0, 'SNo', range(1, len(limited_data) + 1))
|
1170 |
# 3. Save the full dataset to a downloadable file
|
1171 |
-
|
|
|
1172 |
import os
|
1173 |
|
1174 |
# Get the current working directory
|
1175 |
current_folder = os.getcwd()
|
|
|
|
|
1176 |
|
1177 |
print(f"The current folder is: {current_folder}")
|
1178 |
#save_file_to_hostinger('output_data.xlsx')
|
|
|
1168 |
|
1169 |
limited_data_without_first_column.insert(0, 'SNo', range(1, len(limited_data) + 1))
|
1170 |
# 3. Save the full dataset to a downloadable file
|
1171 |
+
|
1172 |
+
|
1173 |
import os
|
1174 |
|
1175 |
# Get the current working directory
|
1176 |
current_folder = os.getcwd()
|
1177 |
+
file_path = os.path.join(current_folder, 'output_data.xlsx')
|
1178 |
+
df.to_excel(file_path, index=False)
|
1179 |
|
1180 |
print(f"The current folder is: {current_folder}")
|
1181 |
#save_file_to_hostinger('output_data.xlsx')
|