Spaces:
Running
Running
Zekun Wu
commited on
Commit
·
860deeb
1
Parent(s):
b7275fb
update
Browse files
pages/5_Evaluation_Single.py
CHANGED
@@ -13,10 +13,9 @@ def app():
|
|
13 |
df = pd.read_csv(data)
|
14 |
|
15 |
# Add ranks for each score within each row
|
16 |
-
ranks = df[['
|
17 |
|
18 |
-
df['
|
19 |
-
df['Protect_Rank'] = ranks['Protect_Avg_Score']
|
20 |
df['Neutral_Rank'] = ranks['Neutral_Avg_Score']
|
21 |
|
22 |
st.write('Uploaded Data:', df)
|
|
|
13 |
df = pd.read_csv(data)
|
14 |
|
15 |
# Add ranks for each score within each row
|
16 |
+
ranks = df[['Counterfactual_Avg_Score', 'Neutral_Avg_Score']].rank(axis=1, ascending=False)
|
17 |
|
18 |
+
df['Counterfactual_Rank'] = ranks['Counterfactual_Avg_Score']
|
|
|
19 |
df['Neutral_Rank'] = ranks['Neutral_Avg_Score']
|
20 |
|
21 |
st.write('Uploaded Data:', df)
|