Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ def data_pre_processing(file_responses):
|
|
14 |
Mention the percentage of your Tax Amount which you wish the Government would allocate through their annual budget, to implement a solution specifically to your 3rd problem.'''
|
15 |
]
|
16 |
|
17 |
-
# Convert columns to numeric and fill NaN values with 0
|
18 |
-
for col in columns:
|
19 |
-
|
20 |
|
21 |
# # Calculate the Total Allocation
|
22 |
# file_responses['Total Allocation'] = file_responses[columns].sum(axis=1)
|
|
|
14 |
Mention the percentage of your Tax Amount which you wish the Government would allocate through their annual budget, to implement a solution specifically to your 3rd problem.'''
|
15 |
]
|
16 |
|
17 |
+
# # Convert columns to numeric and fill NaN values with 0
|
18 |
+
# for col in columns:
|
19 |
+
# file_responses[col] = pd.to_numeric(file_responses[col], errors='coerce').fillna(0)
|
20 |
|
21 |
# # Calculate the Total Allocation
|
22 |
# file_responses['Total Allocation'] = file_responses[columns].sum(axis=1)
|