Petr Tsvetkov
commited on
Commit
β’
9e1ff19
1
Parent(s):
39950c9
Fix the bug
Browse files- analysis_util.py +3 -3
analysis_util.py
CHANGED
@@ -5,9 +5,9 @@ import pandas as pd
|
|
5 |
|
6 |
|
7 |
def correlations_for_group(group):
|
8 |
-
REL_METRICS = [col.split("_")[0] for col in group.
|
9 |
-
IND_METRICS = [col.split("_")[0] for col in group.
|
10 |
-
AGGR_METRICS = [col.split("_")[0] for col in group.
|
11 |
|
12 |
correlations = []
|
13 |
for rel_metric in REL_METRICS:
|
|
|
5 |
|
6 |
|
7 |
def correlations_for_group(group):
|
8 |
+
REL_METRICS = [col.split("_")[0] for col in group.columns if col.endswith("_related")]
|
9 |
+
IND_METRICS = [col.split("_")[0] for col in group.columns if col.endswith("_independent")]
|
10 |
+
AGGR_METRICS = [col.split("_")[0] for col in group.columns if col.endswith("_aggr")]
|
11 |
|
12 |
correlations = []
|
13 |
for rel_metric in REL_METRICS:
|