Spaces:
Sleeping
Sleeping
Update src/vis_utils.py
Browse files- src/vis_utils.py +1 -1
src/vis_utils.py
CHANGED
@@ -230,7 +230,7 @@ def plot_affinity_results(method_names, metric, affinity_path="/tmp/affinity_res
|
|
230 |
|
231 |
# Gather columns related to the specified metric and validate
|
232 |
metric_columns = [col for col in df.columns if col.startswith(f"{metric}_")]
|
233 |
-
df = df[['Method'] + metric_columns]
|
234 |
|
235 |
df = df.fillna(0)
|
236 |
|
|
|
230 |
|
231 |
# Gather columns related to the specified metric and validate
|
232 |
metric_columns = [col for col in df.columns if col.startswith(f"{metric}_")]
|
233 |
+
df = df[['Method'] + metric_columns].set_index('Method')
|
234 |
|
235 |
df = df.fillna(0)
|
236 |
|