Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -695,7 +695,7 @@ def process_excel(file):
|
|
| 695 |
try:
|
| 696 |
project_proposals_df.to_excel(writer, sheet_name='Project_Proposals', index=False)
|
| 697 |
except Exception as e:
|
| 698 |
-
consoleMessage_and_Print("Error during Project Proposal excelling at the end")
|
| 699 |
|
| 700 |
|
| 701 |
try:
|
|
@@ -703,16 +703,16 @@ def process_excel(file):
|
|
| 703 |
'Location_Cluster': list(location_clusters.values())})
|
| 704 |
location_clusters_df.to_excel(writer, sheet_name='Location_Clusters', index=False)
|
| 705 |
|
| 706 |
-
except
|
| 707 |
-
consoleMessage_and_Print("Error during Location Cluster Dataframing")
|
| 708 |
|
| 709 |
try:
|
| 710 |
problem_clusters_df = pd.DataFrame({'Cluster_Id': list(location_clusters.keys()),
|
| 711 |
'Problem_Cluster': list(location_clusters.values())})
|
| 712 |
problem_clusters_df.to_excel(writer, sheet_name='Problem_Clusters', index=False)
|
| 713 |
|
| 714 |
-
except
|
| 715 |
-
consoleMessage_and_Print("Error during Problem Cluster Dataframing")
|
| 716 |
|
| 717 |
|
| 718 |
# # Ensure location_clusters and problem_clusters are in DataFrame format
|
|
|
|
| 695 |
try:
|
| 696 |
project_proposals_df.to_excel(writer, sheet_name='Project_Proposals', index=False)
|
| 697 |
except Exception as e:
|
| 698 |
+
consoleMessage_and_Print(f"Error during Project Proposal excelling at the end: {e}")
|
| 699 |
|
| 700 |
|
| 701 |
try:
|
|
|
|
| 703 |
'Location_Cluster': list(location_clusters.values())})
|
| 704 |
location_clusters_df.to_excel(writer, sheet_name='Location_Clusters', index=False)
|
| 705 |
|
| 706 |
+
except Exception as e:
|
| 707 |
+
consoleMessage_and_Print(f"Error during Location Cluster Dataframing: {e}")
|
| 708 |
|
| 709 |
try:
|
| 710 |
problem_clusters_df = pd.DataFrame({'Cluster_Id': list(location_clusters.keys()),
|
| 711 |
'Problem_Cluster': list(location_clusters.values())})
|
| 712 |
problem_clusters_df.to_excel(writer, sheet_name='Problem_Clusters', index=False)
|
| 713 |
|
| 714 |
+
except Exception as e:
|
| 715 |
+
consoleMessage_and_Print(f"Error during Problem Cluster Dataframing: {e}")
|
| 716 |
|
| 717 |
|
| 718 |
# # Ensure location_clusters and problem_clusters are in DataFrame format
|