Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import pandas as pd
|
3 |
|
4 |
def data_pre_processing(file_responses):
|
5 |
-
# Financial Weights
|
6 |
try:
|
7 |
# Define the columns to be processed
|
8 |
columns = [
|
@@ -15,7 +15,7 @@ def data_pre_processing(file_responses):
|
|
15 |
]
|
16 |
file_responses = file_responses[[
|
17 |
"Personal_TaxDirection_1_Wish",
|
18 |
-
"
|
19 |
]]
|
20 |
|
21 |
|
|
|
2 |
import pandas as pd
|
3 |
|
4 |
def data_pre_processing(file_responses):
|
5 |
+
# Financial Weights can be anything (ultimately the row-wise weights are aggregated and the corresponding fractions are obtained from that rows' total tax payed)
|
6 |
try:
|
7 |
# Define the columns to be processed
|
8 |
columns = [
|
|
|
15 |
]
|
16 |
file_responses = file_responses[[
|
17 |
"Personal_TaxDirection_1_Wish",
|
18 |
+
"Personal_TaxDirection_2_TaxWeightageAllocated"
|
19 |
]]
|
20 |
|
21 |
|